joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414670
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41467b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x414759
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4634b8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4634b8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4634b8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4634b8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4634b8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4634b8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4634b8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4634b8]
inc ecx
sub edx, 8
sub esi, 1
jne 0x414695
pop edi
test edx, edx
je 0x41477b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4634b8]
inc ecx
sub edx, 1
jne 0x414760
not eax
pop esi
ret

Function at 0x414780
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4634b8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4634b8]
mov dword [edx + 8], ecx
ret

Function at 0x4147d0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [esp + 0x10]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4634b8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4634b8]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
ret
Function at 0x414c50
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x414c92
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414c86
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x414ca3
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.004456b0
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret

Function at 0x415d40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x415d80
push esi
call ebp
cmp eax, 0xffffffff
jne 0x415d80
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x415e66
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x415d9f
cmp ax, 0x5c
jne 0x415da1
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x415d93
push edi
cmp ecx, ebx
je 0x415de4
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.004456b0
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.00415d40
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x415e0f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x415e00
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x415e00
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415e13
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x415e30
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x415e30
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x415e66
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00444b03
add esp, 0x414
ret
Function at 0x4175b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x4175ca
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x4175bf
cmp dword [edi + 0x7c], ebx
je 0x4175dd
push edi
call fcn.00415670
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00415480
add esp, 0x10
test eax, eax
je 0x417604
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.00445bf9
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x417645
push 0x4000
call fcn.00445bf9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x417651
push esi
call fcn.00445b1c
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x41769d
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00414a50
add esp, 4
test eax, eax
jne 0x41769d
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x4176c7
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x4176d0
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
neg ecx
sbb ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x417717
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x417717
push eax
push ebx
call fcn.00414780
add esp, 8
add ebp, 1
jne 0x417700
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4179c0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x417a95
cmp dword [ebx + 4], 0xffffffff
jne 0x417a95
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4179f0
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x417a29
cmp ax, 0x2f
je 0x417a29
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417a16
mov eax, dword [0x45fc68]
mov dword [edi], eax
mov edi, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
cmp edi, 1
jne 0x417a54
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x417a54
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call fcn.00414b00
add esp, 0x10
test eax, eax
jne 0x417a76
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.004173c0
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x417ff0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
test esi, esi
jne 0x418028
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00444b03
add esp, 0x20c
ret
push 0x208
lea eax, [esp + 8]
push 0
push eax
call fcn.004449b0
add esp, 0xc
push esi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 2], 0x5c
lea esi, [esp + eax*2 + 2]
je 0x418010
lea eax, [esp + 4]
cmp esi, eax
jbe 0x41807d
cmp word [esi], 0x5c
je 0x41807d
xor ecx, ecx
mov word [esi], cx
sub esi, 2
lea edx, [esp + 4]
cmp esi, edx
ja 0x418067
lea eax, [esp + 4]
cmp esi, eax
jne 0x4180a0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00444b03
add esp, 0x20c
ret
xor ecx, ecx
mov word [esi], cx
sub esi, 2
lea edx, [esp + 4]
cmp esi, edx
je 0x418010
mov eax, edx
cmp esi, eax
jbe 0x4180ed
lea ebx, [ebx]
lea ecx, [esp + 4]
push ecx
call fcn.00417f70
add esp, 4
test eax, eax
jne 0x4180ed
cmp word [esi], 0x5c
je 0x4180e0
sub esi, 2
cmp word [esi], 0x5c
jne 0x4180d7
xor edx, edx
lea eax, [esp + 4]
mov word [esi], dx
cmp esi, eax
ja 0x4180c0
cmp word [esi + 2], 0
push edi
je 0x41812d
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x418100
mov ecx, 0x5c
mov word [esi], cx
jmp 0x418110
add esi, 2
cmp word [esi], 0
jne 0x418110
push 0
lea edx, [esp + 0xc]
push edx
call edi
test eax, eax
je 0x418149
cmp word [esi + 2], 0
jne 0x418100
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00444b03
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00444b03
add esp, 0x20c
ret

Function at 0x418170
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x414
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, dword [esp + 0x41c]
push esi
call fcn.00417f70
add esp, 4
test eax, eax
je 0x41824b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41824b
push 0x208
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004449b0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea edx, [esp + 0x210]
push 0
push edx
call fcn.004449b0
add esp, 0xc
lea eax, [esp + 0x20c]
push eax
push 0
push 0x463bd4
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 1
lea edx, [esp + 0x210]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41824b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str...commonutility.cpp
push 0x11a
push str.Line_no_d_source_s_SHDeleteFile_MoveFileEx_failed_error_d._r_n
call fcn.0040c370
add esp, 0x10
xor eax, eax
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00444b03
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00444b03
add esp, 0x414
ret
Function at 0x418270
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x2214
call fcn.00445650
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x2210], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2220]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x1020]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x418322
mov edx, dword [esp + 0x10]
shr edx, 2
xor edi, edi
test edx, edx
jle 0x418322
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov eax, dword [esp + edi*4 + 0x1018]
push eax
push 0
push 0x410
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x20]
mov esi, eax
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov ecx, dword [esp + 0x18]
push 0x208
lea eax, [esp + 0x201c]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea edx, [esp + 0x2018]
push ebp
push edx
call fcn.004477de
add esp, 8
test eax, eax
jne 0x41833d
mov eax, dword [esp + 0x10]
inc edi
shr eax, 2
cmp edi, eax
jl 0x4182c1
xor eax, eax
mov ecx, dword [esp + 0x2220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00444b03
add esp, 0x2214
ret
mov eax, dword [esp + edi*4 + 0x1018]
jmp 0x418324

Function at 0x418350
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call fcn.00418270
add esp, 4
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x418373
xor eax, eax
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x41836f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret

Function at 0x4183c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x118]
push esi
push edi
mov edi, dword [esp + 0x11c]
push 0x104
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004449b0
mov eax, dword [esp + 0x130]
lea edx, [esp + 0x1c]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x418406
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418417
lea ecx, [esp + 0xc]
push ecx
push edi
sub eax, edx
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x418450
push esi
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x418475
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00444b03
add esp, 0x10c
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00444b03
add esp, 0x10c
ret
Function at 0x4184d0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x418511
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x41850d
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x418520
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x44]
push edi
push esi
xor edi, edi
call fcn.00417f70
add esp, 4
test eax, eax
je 0x4185b2
push 0x38
lea eax, [esp + 0x10]
push edi
push eax
call fcn.004449b0
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
add esp, 0xc
neg edx
sbb edx, edx
lea eax, [esp + 8]
and edx, 5
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], str.open
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
cmp dword [esp + 0x54], edi
je 0x4185b4
mov ecx, dword [esp + 0x40]
push 0x7d0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov eax, esi
pop esi
add esp, 0x3c
ret
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret

Function at 0x4185c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
movzx edi, word [esp + 0x18]
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x418601
mov ecx, dword [esp + 0x14]
push edi
push ecx
push str...commonutility.cpp
push 0x2bf
push str.Line_no_d_source_s_Resource_not_found:__s_ResId_d_r_n
call fcn.0040c370
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418661
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str...commonutility.cpp
push 0x2cf
push str.Line_no_d_source_s_File_create_failed_FileName_s_GetLastError_d_r_n
call fcn.0040c370
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
lea edx, [esp + 0x1c]
push edx
push ebx
push edi
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x418690
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x138
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x134], eax
push edi
mov edi, dword [esp + 0x140]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x10]
mov ecx, 9
cmp cx, ax
je 0x4186da
mov edx, 0xa
cmp dx, ax
je 0x4186da
mov ecx, 6
cmp cx, ax
jne 0x418702
lea edx, [esp + 4]
push edx
push 0xf023f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallADSafe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41871b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x418764
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallADSafe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x418764
push 0x104
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.004449b0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.DisplayVersion
push edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41879e
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str...commonutility.cpp
push 0x33d
push str.Line_no_d_source_s_GetAdsVersion_failed._r_n
call fcn.0040c370
add esp, 0xc
xor eax, eax
pop edi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00444b03
add esp, 0x138
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
call esi
push eax
push edi
push 0xffffffffffffffff
lea edx, [esp + 0x44]
push edx
push 0
push 0
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x13c]
pop esi
pop edi
xor ecx, esp
mov eax, 1
call fcn.00444b03
add esp, 0x138
ret

Function at 0x4187f0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x418863
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
push esi
push esi
push 0x10
neg edx
lea eax, [esp + 0x14]
push eax
sbb edx, edx
push esi
and edx, 2
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x418870
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x138
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
mov ebx, dword [esp + 0x140]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x10]
mov ecx, 9
cmp cx, ax
je 0x4188ba
mov edx, 0xa
cmp dx, ax
je 0x4188ba
mov ecx, 6
cmp cx, ax
jne 0x4188d8
lea edx, [esp + 4]
push edx
push 0xf023f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallADSafe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x4188ed
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallADSafe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x418939
push 0x104
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004449b0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.DisplayIcon
push edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41897a
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str...commonutility.cpp
push 0x143
push str.Line_no_d_source_s_GetInstallFileName_failed_error_d._r_n
call fcn.0040c370
add esp, 0x10
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00444b03
add esp, 0x138
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
call edi
mov esi, eax
push esi
push ebx
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push edx
push 0
push 0
call edi
mov ecx, dword [esp + 0xc]
xor eax, eax
push ecx
mov word [ebx + esi*2], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00444b03
add esp, 0x138
ret