joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414d90
Capabilities:
Check for peb beingdebugged flag
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43c0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
mov eax, edi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414de1
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x18]
call fcn.00408070
push edi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414e21
cmp dword [esp + 0x28], 8
jb 0x414ea2
mov eax, dword [esp + 0x14]
push eax
jmp 0x414e9a
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call esi
test eax, eax
jne 0x414e8e
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0xb7
je 0x414e8e
lea ecx, [esp + 0x10]
push ecx
call fcn.00414c50
add esp, 4
cmp dword [esp + 0x24], 0
jne 0x414e60
lea esi, [esp + 0x10]
call fcn.004052b0
xor eax, eax
jmp 0x414ea7
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x414e6f
lea eax, [esp + 0x14]
push eax
call fcn.00414d90
add esp, 4
test eax, eax
je 0x414e53
push 0
push edi
call esi
test eax, eax
jne 0x414e8e
call ebp
cmp eax, 0xb7
jne 0x414e53
cmp dword [esp + 0x28], 8
jb 0x414ea2
mov edx, dword [esp + 0x14]
push edx
call fcn.0041c4fe
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041cb94
add esp, 0x2c
ret
Function at 0x414f40
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x445fb8
push 0x420170
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x44a120]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x414fee
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x414fee
mov edi, 1
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x414fee
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00415011
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415910
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43c0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor edi, edi
mov eax, edx
xor ebx, ebx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], di
lea esi, [eax + 2]
jmp 0x415960
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x415960
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x18]
call fcn.00408070
mov dword [esp + 0x38], edi
mov edi, esi
call fcn.00413fb0
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x415998
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x40]
push ecx
push eax
call fcn.00415360
add esp, 8
test eax, eax
je 0x4159af
mov ebx, 1
cmp dword [esp + 0x28], esi
jb 0x4159c2
mov edx, dword [esp + 0x14]
push edx
call fcn.0041c4fe
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041cb94
add esp, 0x2c
ret
Function at 0x415ce0
Capabilities:
Check for peb beingdebugged flag
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x43c3fb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x23
lea eax, [esp + 0x38]
push eax
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebp, 7
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea edx, [eax + 2]
jmp 0x415d50
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415d50
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x34]
push ecx
lea esi, [esp + 0x1c]
call fcn.00408070
mov dword [esp + 0x244], ebx
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x415da9
push ebx
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], ebx
push 0x43fc90
mov esi, edi
mov word [edi + 4], bx
call fcn.00408070
cmp dword [esp + 0x2c], 8
jb 0x415e5c
mov edx, dword [esp + 0x18]
push edx
jmp 0x415e54
lea esi, [eax - 1]
cmp eax, esi
ja 0x415db5
call fcn.0041bcb7
mov eax, dword [esp + 0x18]
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jae 0x415dc8
lea eax, [esp + 0x18]
movzx eax, word [eax + esi*2]
cmp ax, 0x5c
je 0x415de8
cmp ax, 0x2f
je 0x415de8
push 1
push 0x43fc94
lea ecx, [esp + 0x1c]
call fcn.00411f50
push 0x14
push str.TencentWIN10Helper_
lea ecx, [esp + 0x1c]
call fcn.00411f50
cmp dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x18]
jae 0x415e06
lea eax, [esp + 0x18]
push eax
call fcn.00414d90
add esp, 4
test eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
jne 0x415e3b
push ebx
push 0x43fc90
mov esi, edi
call fcn.00408070
cmp dword [esp + 0x2c], ebp
jb 0x415e5c
mov eax, dword [esp + 0x18]
push eax
jmp 0x415e54
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
mov ecx, edi
call fcn.004079e0
cmp dword [esp + 0x2c], ebp
jb 0x415e5c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041c4fe
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0041cb94
add esp, 0x238
ret
Function at 0x4161a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
xor edi, edi
push 0x208
lea eax, [esp + 0x12]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x14], edi
mov word [esp + 0x18], di
call fcn.00420090
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
lea edx, [eax + 2]
jmp 0x416200
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x416200
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.00408070
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041cb94
add esp, 0x214
ret

Function at 0x416240
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x40c], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SoftwareTencentWIN10Helper
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416328
push 0x400
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00420090
mov ecx, dword [esp + 0xc]
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x443ab4
push ecx
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41631e
lea edx, [esp + 8]
push edx
push 0x104
push esi
call fcn.0041d75b
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4162d0
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x4162fa
push 0x43fc94
push 0x104
push esi
call fcn.0041e457
add esp, 0xc
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0041cb94
add esp, 0x410
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
xor eax, eax
call fcn.0041cb94
add esp, 0x410
ret
Function at 0x416340
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x40c], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SoftwareTencentWIN10Helper
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4163f8
push 0x400
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00420090
mov ecx, dword [esp + 0xc]
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push str.Version
push ecx
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4163ee
lea edx, [esp + 8]
push edx
push 0x104
push esi
call fcn.0041d75b
mov eax, dword [esp + 0xc]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0041cb94
add esp, 0x410
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
xor eax, eax
call fcn.0041cb94
add esp, 0x410
ret
Function at 0x416cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43af53
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea ecx, [esi + 0x10]
mov word [esi + 4], 0x17c6
mov dword [esi + 8], 0x1bb
mov dword [esi + 0xc], 0x1f40
xor ebx, ebx
push 0x13
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.masterconn11.qq.com
mov dword [esp + 0x10], esi
mov byte [ecx + 4], bl
call fcn.00407f10
push 0xffffffffffffffff
mov dword [esp + 0x38], ebx
lea eax, [esi + 0x10]
push ebx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00407880
mov byte [esp + 0x34], 1
cmp dword [esp + 0x24], 0x10
movzx eax, word [esi + 8]
mov ecx, dword [esp + 0x10]
jae 0x416d71
lea ecx, [esp + 0x10]
push 1
push eax
push ecx
call dword [0x44cf44]
cmp dword [esp + 0x24], 0x10
mov dword [esi], eax
jb 0x416d91
mov eax, dword [esp + 0x10]
push eax
call fcn.0041c4fe
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041cb94
add esp, 0x30
ret

Function at 0x417170
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x43ad02
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x434], edi
push ebx
mov ecx, 0x444034
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edi
call fcn.004094b0
push edi
push edi
push 3
push edi
push 3
push edi
mov dword [esp + 0x44c], edi
push 0x4440f0
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41726d
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push 0x400
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push edi
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00420090
add esp, 0xc
push edi
lea ecx, [esp + 0x18]
push ecx
push 0x400
lea edx, [esp + 0x34]
push edx
push 0xc
lea eax, [esp + 0x30]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x417266
mov edi, dword [esp + 0x38]
movsx ecx, byte [esp + edi + 0x28]
lea edi, [esp + edi + 0x28]
push ecx
call fcn.0041fb37
add esp, 4
test eax, eax
je 0x417266
mov edx, edi
call fcn.00409560
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0041cb94
add esp, 0x428
ret
Function at 0x417560
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x43bf4c
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xdc]
xor esi, esi
cmp ebp, esi
jne 0x4175af
xor eax, eax
jmp 0x41776a
lea ecx, [esp + 0x18]
call fcn.00417170
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0xd8], esi
call fcn.004172a0
add esp, 4
mov ebx, 1
mov byte [esp + 0xd4], bl
mov edx, dword [0x44bcf4]
mov eax, dword [edx + 0xc]
mov ecx, 0x44bcf4
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0xdc], 2
call fcn.004173b0
add esp, 8
mov byte [esp + 0xd4], 3
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov esi, dword [eax - 0xc]
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
jle 0x41765a
mov eax, esi
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00409820
mov eax, dword [esp + 0x18]
push esi
push eax
lea edi, [esp + 0x30]
call fcn.0041b5c0
mov eax, dword [esp + 0x28]
mov esi, dword [eax - 0xc]
add esp, 8
cmp dword [eax - 4], ebx
jle 0x417685
mov edx, esi
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00409820
mov eax, dword [esp + 0x20]
push esi
push eax
lea edi, [esp + 0x30]
call fcn.0041b5c0
mov eax, dword [esp + 0x24]
mov esi, dword [eax - 0xc]
add esp, 8
cmp dword [eax - 4], ebx
jle 0x4176b0
mov ecx, esi
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00409820
mov eax, dword [esp + 0x1c]
push esi
push eax
lea edi, [esp + 0x30]
call fcn.0041b5c0
push ebp
mov esi, edi
call fcn.0041b680
mov byte [esp + 0xe0], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4176ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd4], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417715
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd4], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41773d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xd4], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.0041cb94
add esp, 0xc4
ret
Function at 0x4185d0
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp dword [esi + 4], 0
jne 0x418678
push edi
push 0x208
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.00420090
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xc
push 0x44437c
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0041ded5
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x10
call edi
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
call edi
cmp dword [esi + 4], 0
pop edi
jne 0x418678
or dword [esi + 0x1c], 1
xor eax, eax
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0041cb94
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, 1
call fcn.0041cb94
add esp, 0x210
ret
Function at 0x418d50
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x78
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
push esi
mov esi, dword [eax]
xor eax, eax
cmp esi, 0xffffffff
push edi
mov edi, ecx
je 0x418e20
push 0x44
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00420090
mov eax, dword [edi]
or dword [esp + 0x50], 0x101
add esp, 0xc
mov dword [esp + 0x50], esi
mov ecx, 7
mov esi, str.ipconfig__all
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
push 0
lea eax, [esp + 0x80]
push eax
push 0
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
jne 0x418e0a
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0041cb94
add esp, 0x78
ret 4
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call edi
mov eax, esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.0041cb94
add esp, 0x78
ret 4
Function at 0x418e40
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43ba06
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov eax, dword [esp + 0x438]
mov edx, dword [0x44bcf4]
mov ebp, dword [esp + 0x43c]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xc]
mov esi, ecx
mov ecx, 0x44bcf4
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x430], 0
mov eax, dword [esi]
test eax, eax
je 0x418ed0
cmp eax, 0xffffffff
je 0x418ed0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x419019
mov dword [esi], 0xffffffff
mov eax, dword [ebp]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x400
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418fa6
mov edi, dword [esp + 0x18]
test edi, edi
je 0x418fa6
mov edx, dword [0x44bcf4]
mov eax, dword [edx]
push 1
push edi
mov ecx, 0x44bcf4
call eax
test eax, eax
je 0x419044
test edi, edi
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
jl 0x419049
cmp edi, dword [esi - 8]
jg 0x419049
push edi
lea ecx, [esp + 0x28]
push ecx
push edi
mov dword [esi - 0xc], edi
push esi
mov byte [edi + esi], 0
call fcn.0041cba3
add esp, 0x10
mov byte [esp + 0x430], 1
mov eax, dword [esi - 0xc]
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.00409b20
lea eax, [esi - 0x10]
mov byte [esp + 0x430], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418f83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x400
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418ef3
mov esi, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x18]
call fcn.00419060
push esi
call fcn.00419ab0
push esi
call fcn.00419f70
mov dword [esp + 0x430], 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 0x418feb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0041cb94
add esp, 0x424
ret 8
lea eax, [edi - 0x10]
mov dword [esp + 0x430], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419040
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x418ff0
call fcn.00409810
push 0x80070057
call fcn.00401000
int3
Function at 0x41cb94
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a120]
jne 0x41cb9e
repz ret
jmp fcn.0042578c

Function at 0x41f6a6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41f6d3
call fcn.004230f6
mov dword [eax], esi
call fcn.004230e3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041d727
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x41f6af
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f702
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00423109
pop ecx
call fcn.004230e3
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41f729
test al, 1
je 0x41f729
test byte [esp + 0xc], 2
je 0x41f729
call fcn.004230f6
mov dword [eax], 5
call fcn.004230e3
mov dword [eax], 0xd
jmp 0x41f6f9
xor eax, eax
pop esi
ret

Function at 0x426d3b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44aa30]
je 0x426d56
inc edi
cmp edi, 0x17
jb 0x426d47
cmp edi, 0x17
jae 0x426ed6
push ebp
push 3
call fcn.00434daf
cmp eax, 1
pop ecx
je 0x426ea2
push 3
call fcn.00434daf
test eax, eax
pop ecx
jne 0x426d8a
cmp dword [0x44a110], 1
je 0x426ea2
cmp ebx, 0xfc
je 0x426ed5
push 0x43e4b0
mov ebx, 0x314
push ebx
mov ebp, 0x44c498
push ebp
call fcn.00426f14
add esp, 0xc
test eax, eax
je 0x426dc0
push esi
push esi
push esi
push esi
push esi
call fcn.0041d62b
add esp, 0x14
push 0x104
mov esi, 0x44c4b1
push esi
push 0
mov byte [0x44c5b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x426e04
push 0x43e498
push 0x2fb
push esi
call fcn.00426f14
add esp, 0xc
test eax, eax
je 0x426e04
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041d62b
add esp, 0x14
push esi
call fcn.00420310
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x426e49
push esi
call fcn.00420310
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44c7ac
push 0x43e494
sub ecx, eax
push ecx
push eax
call fcn.0041fb97
add esp, 0x14
test eax, eax
je 0x426e49
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041d62b
add esp, 0x14
jmp 0x426e4b
xor esi, esi
push 0x43e490
push ebx
push ebp
call fcn.0042d3fb
add esp, 0xc
test eax, eax
je 0x426e6b
push esi
push esi
push esi
push esi
push esi
call fcn.0041d62b
add esp, 0x14
push dword [edi*8 + 0x44aa34]
push ebx
push ebp
call fcn.0042d3fb
add esp, 0xc
test eax, eax
je 0x426e8d
push esi
push esi
push esi
push esi
push esi
call fcn.0041d62b
add esp, 0x14
push 0x12010
push 0x43e468
push ebp
call fcn.00434bf2
add esp, 0xc
jmp 0x426ed5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x426ed5
cmp ebp, 0xffffffff
je 0x426ed5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44aa34]
push dword [esi]
call fcn.00420310
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret