joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49498d
Capabilities:
Create thread
Get disk size
Get hostname
Manipulate console buffer
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe7c
cmp dword [0x140776c], 0x598
jne 0x4949d4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x401410
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
call fcn.00495099
pop ecx
call fcn.00494eb2
push ebx
push esi
mov esi, 0xa4808
xor ebx, ebx
push edi
cmp dword [0x140776c], 0x57c
jne 0x494a8b
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push ebx
push ebx
lea eax, [ebp - 0xe7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0x30
lea eax, [ebp - 0x48]
push ebx
push eax
mov dword [ebp - 0x4c], ebx
call fcn.00495110
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push ebx
push 0x401430
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x67c]
push eax
push ebx
push 0x4014bc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp - 0x27c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
dec esi
jne 0x4949de
mov eax, dword [0x49fabc]
add eax, 0xb2d3b
mov dword [0x140776c], eax
mov eax, 0x4a1bc0
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x494aaa
sub eax, edx
cmp eax, 0x1515
jne 0x494b18
push ebx
push ebx
push ebx
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
call fcn.00494c97
push ebx
push ebx
call fcn.00494c57
push ebx
call fcn.00495099
add esp, 0x14
call fcn.004947df
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x4956b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0e4c]
jne 0x4956ba
repz ret
jmp fcn.00499227
Function at 0x49aad2
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.0049624b
and dword [ebp - 4], 0
cmp dword [0x146fee0], 0
mov ebx, eax
jne 0x49ab83
push 0x402d14
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49ac34
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402d08
push edi
call esi
test eax, eax
je 0x49ac34
push eax
call fcn.004961d9
mov dword [esp], 0x402cf8
push edi
mov dword [0x146fee0], eax
call esi
push eax
call fcn.004961d9
mov dword [esp], 0x402ce4
push edi
mov dword [0x146fee4], eax
call esi
push eax
call fcn.004961d9
mov dword [esp], 0x402cc8
push edi
mov dword [0x146fee8], eax
call esi
push eax
call fcn.004961d9
pop ecx
mov dword [0x146fef0], eax
test eax, eax
je 0x49ab83
push 0x402cb0
push edi
call esi
push eax
call fcn.004961d9
pop ecx
mov dword [0x146feec], eax
mov eax, dword [0x146feec]
cmp eax, ebx
je 0x49abdb
cmp dword [0x146fef0], ebx
je 0x49abdb
push eax
call fcn.00496254
push dword [0x146fef0]
mov esi, eax
call fcn.00496254
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49abdb
test edi, edi
je 0x49abdb
call esi
test eax, eax
je 0x49abd2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49abd2
test byte [ebp - 0xc], 1
jne 0x49abdb
or dword [ebp + 0x10], 0x200000
jmp 0x49ac14
mov eax, dword [0x146fee4]
cmp eax, ebx
je 0x49ac14
push eax
call fcn.00496254
pop ecx
test eax, eax
je 0x49ac14
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49ac14
mov eax, dword [0x146fee8]
cmp eax, ebx
je 0x49ac14
push eax
call fcn.00496254
pop ecx
test eax, eax
je 0x49ac14
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x146fee0]
call fcn.00496254
pop ecx
test eax, eax
je 0x49ac34
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49ac36
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a08
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x405b5c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403694
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040372c
jmp 0x405af7
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x405b74
call fcn.0040d780
cmp dword [ebx], 0
je 0x405a76
mov eax, ebx
mov edx, 0x405b74
call fcn.004038fc
cmp dword [ebx], 0
jne 0x405a9d
mov eax, dword [ebp - 8]
call fcn.004038f4
cmp eax, 2
jne 0x405a9d
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x3a
jne 0x405a9d
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004036e8
jmp 0x405af7
push 0x200
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov edx, dword [ebx]
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 8]
call fcn.00403940
mov eax, dword [ebp - 0x16c]
call fcn.00403af4
push eax
call sub.shell32.dll_SHGetFileInfoA
cmp byte [ebp - 0x15c], 0
je 0x405aed
lea eax, [ebp - 8]
lea edx, [ebp - 0x15c]
mov ecx, 0x104
call fcn.004038dc
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004038fc
cmp dword [ebp - 4], 0
jne 0x405a55
lea edx, [ebp - 0x170]
mov eax, dword [ebx]
call fcn.0040d97c
cmp dword [ebp - 0x170], 0
jne 0x405b31
lea edx, [ebp - 0x174]
mov eax, esi
call fcn.0040d97c
mov edx, dword [ebp - 0x174]
mov eax, ebx
call fcn.004038fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b63
lea eax, [ebp - 0x174]
mov edx, 3
call fcn.004036b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004036b8
ret

Function at 0x406344
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp], eax
test ebx, ebx
je 0x406388
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00403af4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x406388
cmp dword [esp + 4], 4
je 0x40638d
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x406398
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00403af4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret
Function at 0x4063d4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.00403694
cmp dword [ebp - 0xc], 0
je 0x40647a
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push ebp
call fcn.00406398
pop ecx
test al, al
je 0x40647a
cmp dword [ebp - 4], 1
je 0x406417
cmp dword [ebp - 4], 2
jne 0x40647a
mov eax, dword [ebp - 8]
call fcn.00402830
mov dword [ebp - 0x14], eax
push ebp
call fcn.00406398
pop ecx
test al, al
je 0x406472
cmp dword [ebp - 4], 2
jne 0x406468
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov edi, eax
mov eax, edi
call fcn.00402830
mov esi, eax
push edi
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, ebx
mov edx, esi
call fcn.00403870
mov eax, esi
call fcn.00402860
jmp 0x406472
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00403870
mov eax, dword [ebp - 0x14]
call fcn.00402860
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4064fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, 1
cmp byte [ebp + 8], 0
je 0x40651a
mov ebx, 2
test esi, esi
je 0x406545
mov eax, edi
call fcn.004038f4
inc eax
push eax
mov eax, edi
call fcn.00403af4
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
push esi
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x406549
xor eax, eax
jmp 0x40654b
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x406560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x40658d
lea eax, [esp + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.00403af4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406591
xor eax, eax
jmp 0x406593
mov al, 1
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x406f68
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x406fe4
mov byte [ebp - 0x1004], 0
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x406fdb
mov eax, edi
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.004038dc
jmp 0x407015
mov eax, edi
call fcn.00403694
jmp 0x407015
mov eax, edi
mov edx, esi
call fcn.004036e8
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409cf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
invalid
invalid
invalid

Function at 0x409d58
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x409d6e
add byte [eax - 0x5225b], al
inc dword [eax]

Function at 0x40aa98
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lahf
mov byte [ebp - 0x739], 0x8f
mov byte [ebp - 0x738], 0x9c
mov byte [ebp - 0x737], 0x8f
mov byte [ebp - 0x736], 0x84
mov byte [ebp - 0x735], 0xbc
mov byte [ebp - 0x734], 0xfd
invalid
invalid
invalid
clc
invalid

Function at 0x40b8b4
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40b8c0
or byte [eax + 0x27], 0x10
mov ecx, dword [eax + 0x1c]
jecxz 0x40b8d9
push eax
je 0x40b8da
call dword [0x426148]
pop eax
push 5
push dword [eax + 0x1c]
call sub.user32.dll_ShowWindow
ret
and byte [eax + 0x37], 0xfe
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x426148]
ret

Function at 0x40d908
Capabilities:
Get file attributes

Disassembly:
call fcn.0040502c
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40d91c
dec eax
and al, 0x10
sete al
ret

Function at 0x40d998
Capabilities:
Get common file path

Disassembly:
push ebx
xchg ebx, eax
sub esp, 0x104
mov eax, esp
push 0x104
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
call fcn.00403870
mov edx, ebx
mov eax, dword [edx]
call fcn.00405c64
add esp, 0x104
pop ebx
ret

Function at 0x40d9c8
Capabilities:
Get common file path

Disassembly:
push ebx
xchg ebx, eax
sub esp, 0x104
mov eax, esp
push 0x104
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
call fcn.00403870
mov edx, ebx
mov eax, dword [edx]
call fcn.00405c64
add esp, 0x104
pop ebx
ret
Function at 0x40d9f8
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.00403870
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.00405c64
ret

Function at 0x40e488
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e4bc
xor eax, eax
jmp 0x40e50d
lea eax, [ebp - 0xc]
push eax
mov ax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x40e4f0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x40e4f0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle
mov ax, word [ebp + 8]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415858
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4299d0
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x41587a
shr eax, 1
xor eax, 0xedb88320
jmp 0x41587c
shr eax, 1
dec edx
jne 0x415868
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x415861
mov byte [0x429dd0], 1
pop esi
pop ebx
ret

Function at 0x415898
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x429dd0], 0
jne 0x4158af
call fcn.00415858
mov eax, edi
dec eax
test eax, eax
jl 0x4158d8
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4299d0]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4158b9
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x41ce54
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
mov dword [esp], pe_nt_image_headers32
test al, al
je 0x41ce75
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
jmp 0x41ce80
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.004038dc
add esp, 0x104
pop ebx
ret

Function at 0x41ce98
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffc10
mov ebx, edx
push esp
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x3e9
call fcn.004038dc
add esp, 0x3f0
pop ebx
ret
Function at 0x422c0c
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x422ce5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
lea ecx, [ebp - 4]
xor edx, edx
mov eax, edi
call fcn.00422b48
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
call sub.kernel32.dll_DeleteFileA
inc edi
cmp edi, 0x12
jne 0x422c2b
test bl, bl
je 0x422ca2
mov eax, 0x1a
call fcn.00422b38
mov esi, eax
add esi, 0x14
sub esi, 0x14
jl 0x422ca2
inc esi
mov edi, 0x14
lea ecx, [ebp - 8]
xor edx, edx
mov eax, edi
call fcn.00422b48
mov eax, dword [ebp - 8]
call fcn.00403af4
push eax
call sub.kernel32.dll_DeleteFileA
lea ecx, [ebp - 0xc]
lea eax, [edi + 0x1e]
xor edx, edx
call fcn.00422b48
mov eax, dword [ebp - 0xc]
call fcn.00403af4
push eax
call sub.kernel32.dll_DeleteFileA
inc edi
dec esi
jne 0x422c69
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, 1
call fcn.00422b48
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00405c8c
mov eax, dword [ebp - 0x10]
call fcn.00403af4
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422cec
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004036b8
ret

Function at 0x423113
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4230c0
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
jne 0x4230c0
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x423157
mov eax, 0x400
call fcn.00402830
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x423150
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4287d0
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x423146
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x423142
mov byte [esp], 1
jmp 0x423146
inc edi
dec ebx
jne 0x423129
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402860
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x423494
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ae4
xor eax, eax
push ebp
push 0x4234c1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a9b4
mov edx, dword [ebp - 8]
mov eax, 0x42a0dc
call fcn.004036e8
xor eax, eax
mov dword [0x42a0d8], eax
push 0
push 0x423364
call sub.user32.dll_EnumWindows
mov ebx, dword [0x42a0d8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4234c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004036b8
ret

Function at 0x4234e2
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, eax
xor ebx, ebx
test esi, esi
jns 0x4234e1
call fcn.00402d14
push esi
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
jns 0x4234f9
call fcn.00402d14
push esp
mov esi, edi
test esi, esi
jns 0x423505
call fcn.00402d14
push esi
call sub.kernel32.dll_GetExitCodeProcess
test edi, edi
je 0x423528
mov eax, dword [esp]
push eax
test edi, edi
jns 0x42351c
call fcn.00402d14
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
test edi, edi
jns 0x423531
call fcn.00402d14
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x401f40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x469003
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0x29
lea eax, [esp + 0xc]
push eax
mov ecx, 0x4948b4
call fcn.0041f7c0
push eax
lea ecx, [esi + 0xc0]
mov dword [esp + 0x2c], 0
call fcn.004290a0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.00429090
push 0x2a
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x4948b4
call fcn.0041f7c0
push eax
lea ecx, [esi + 0xcc]
mov dword [esp + 0x2c], 1
call fcn.004290a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00429090
mov edx, dword [esp + 0x30]
push edx
push 9
mov ecx, esi
mov byte [esi + 0x964], 0
call fcn.004029f0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4

Function at 0x4029f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00431f66

Function at 0x402ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402cf9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402d34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402d30
lea ebx, [ebx]
cmp esi, eax
jae 0x402d34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402d20
cmp esi, eax
jb 0x402d3a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403830
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403840
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403854
push ebp
sub eax, edx
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push 0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4039a4
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
push str..UIF
push edx
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4038bf
mov eax, dword [esp + 0x10]
push 0xe
push str.YingUnInstall2
push 1
push 0
push 0
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push str.YingUnInstall2
push eax
call ebx
test eax, eax
jne 0x40399a
mov ecx, dword [esp + 0x10]
push 0xe
push str.Uninstall_File
push 1
push eax
push eax
push ecx
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push str.DefaultIcon
push eax
call ebx
test eax, eax
jne 0x403917
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push ebp
push ecx
push 1
push eax
push eax
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push str.Shell
push edx
call ebx
test eax, eax
jne 0x403993
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push str.Open
push ecx
call ebx
test eax, eax
jne 0x40398c
mov edx, dword [esp + 0x18]
push eax
push 0x473030
push 1
push eax
push eax
push edx
call esi
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push str.Command
push ecx
call ebx
test eax, eax
jne 0x403985
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push 2
push 0
push 0
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x18
ret