joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 8
cmp dword [esi + 0x1c], 8
push ebx
jb 0x4010ff
mov eax, dword [esi + 8]
jmp 0x401102
lea eax, [esi + 8]
test eax, eax
je 0x40113c
cmp word [eax], 0
je 0x40113c
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
je 0x4011cc
lea ecx, [esi + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esi + 0x30]
or edx, dword [esi + 0x34]
je 0x40117e
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x20]
push 0
push eax
push ecx
push 2
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x24], eax
test eax, eax
je 0x4011cc
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x28], eax
setne al
test al, al
je 0x4011cc
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
test edx, edx
jl 0x4011af
jg 0x40118e
test ecx, ecx
jbe 0x4011af
cmp byte [esi], 0
jne 0x4011c5
mov eax, dword [esi + 0x28]
push edx
push ecx
lea ebx, [esp + 0x10]
call fcn.00414840
mov eax, dword [eax]
mov dword [esi], eax
add esp, 8
mov al, 1
pop ebx
add esp, 8
ret
mov byte [esp + 8], 2
call dword [sym.imp.KERNEL32.dll_GetACP]
mov word [esp + 0xa], ax
mov ecx, dword [esp + 8]
mov dword [esi], ecx
mov al, 1
pop ebx
add esp, 8
ret
xor al, al
pop ebx
add esp, 8
ret
Function at 0x401b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52c5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], eax
mov word [esp + 0x30], ax
mov dword [esp + 0x58], eax
mov ebx, str.item
lea eax, [esp + 0xc]
call fcn.0041a6d0
cmp dword [esp + 0xc], 0
je 0x401c48
mov ecx, dword [0x56eadc]
sub ecx, dword [0x56ead8]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x1c], ecx
mov ebx, str.time
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
call fcn.0041a740
mov eax, dword [eax]
test eax, eax
je 0x401bb0
mov eax, dword [eax + 8]
test eax, eax
jne 0x401bb5
mov eax, 0x53741c
push eax
call fcn.005021b0
mov dword [esp + 0x28], eax
add esp, 4
mov ebx, str.path
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], edx
call fcn.0041a740
mov eax, dword [eax]
test eax, eax
je 0x401be7
mov eax, dword [eax + 8]
mov edx, eax
test eax, eax
jne 0x401bec
mov edx, 0x53741c
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401bf1
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.00401260
lea ebx, [esp + 0x1c]
call fcn.004023e0
mov ebx, str.item
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
call fcn.0041a7b0
mov eax, dword [eax]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x401b70
cmp dword [esp + 0x44], 8
jb 0x401c48
mov edx, dword [esp + 0x30]
push edx
call fcn.00501b8f
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00501b9a
add esp, 0x50
ret
Function at 0x40a240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52a7a2
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc], ebx
call fcn.004dae50
lea eax, [esp + 0x68]
push eax
push 0x6c
mov dword [esp + 0x98], 1
call fcn.004dc710
add esp, 8
xor ecx, ecx
push 0xc
mov word [esp + 0x34], cx
mov edi, 7
push str.notepadp.cfg
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
call fcn.00401260
mov byte [esp + 0x90], 2
push edi
xor edx, edx
push 0x537a9c
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
call fcn.00401260
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0x98], 3
call fcn.004db270
lea edx, [esp + 0x2c]
push edx
push esi
mov ecx, eax
mov byte [esp + 0x98], 4
call fcn.004db270
lea ecx, [esp + 0x4c]
mov dword [esp + 0xc], 1
mov byte [esp + 0x90], 3
call fcn.004dae70
cmp dword [esp + 0x28], 8
jb 0x40a347
mov eax, dword [esp + 0x14]
push eax
call fcn.00501b8f
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x44], 8
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
jb 0x40a36a
mov edx, dword [esp + 0x30]
push edx
call fcn.00501b8f
add esp, 4
xor eax, eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], ax
mov byte [esp + 0x90], bl
call fcn.004dae70
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00501b9a
add esp, 0x88
ret

Function at 0x40b2a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b2b7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b2e8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40b2e4
cmp esi, eax
jae 0x40b2e8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40b2d4
cmp esi, eax
jb 0x40b2ee
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x40ccb0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x10], eax
test esi, esi
je 0x40cd65
cmp word [esi], 0
je 0x40cd65
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
push 0
push 0x20
lea ebx, [ebx*4 + 1]
push ebx
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40cd16
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00501b9a
add esp, 0x14
ret
cmp byte [edi + 8], 0
je 0x40cd53
cmp ebx, 1
je 0x40cd26
cmp ebx, 5
jne 0x40cd53
mov eax, dword [edi]
mov edx, dword [eax + 8]
lea ecx, [esp + 8]
push ecx
mov ecx, edi
call edx
mov dword [esp + 4], eax
test eax, eax
jbe 0x40cd53
push 0
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [edi + 4]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00501b9a
add esp, 0x14
ret
mov ecx, dword [esp + 0x10]
xor ecx, esp
xor al, al
call fcn.00501b9a
add esp, 0x14
ret
Function at 0x40cdf0
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, eax
xor ebx, ebx
lea eax, [esi + esi]
cdq
xor ecx, ecx
cmp edx, ebx
push edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
jl 0x40ce9e
jg 0x40ce28
cmp eax, ebx
jbe 0x40ce9e
push ebx
push eax
push edx
push 4
push ebx
push 0xffffffffffffffff
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x40ce87
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
cmp ecx, ebx
setne al
mov dword [esp + 0x20], ecx
cmp al, bl
jne 0x40ce9e
cmp dword [esp + 0x1c], ebx
je 0x40ce87
cmp ecx, ebx
je 0x40ce7c
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
push eax
call edi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x40ce93
push eax
call edi
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0xc]
push edx
push ecx
push esi
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
cmp esi, ebx
jg 0x40cecf
lea esi, [esp + 0x18]
call section..text
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x20]
cmp byte [edi + 0xc], bl
jne 0x40cef8
lea ecx, [edx + esi*2 - 2]
cmp ecx, edx
jb 0x40cef8
mov dl, byte [ecx]
mov al, byte [ecx + 1]
mov byte [ecx], al
mov byte [ecx + 1], dl
mov edx, dword [esp + 0x20]
sub ecx, 2
cmp ecx, edx
jae 0x40cee3
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 4]
lea eax, [esi + esi]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne byte [esp + 0x13]
cmp dword [esp + 0x1c], ebx
je 0x40cf3e
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40cf33
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x1c]
push edx
call esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x40cf4a
push eax
call esi
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410120
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x20c], eax
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.005033b0
mov edx, dword [0x56eae8]
mov ecx, dword [edx + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
add esp, 0xc
call edx
push eax
push 0x104
lea eax, [esp + 8]
push eax
push 0
push str.File4Open
push str.EditorAssist
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x410193
cmp word [esp], 0
je 0x410193
push ebx
lea ebx, [esp + 4]
mov ecx, esi
call fcn.00411860
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00501b9a
add esp, 0x210
ret

Function at 0x412e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52aaf8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x56cf78]
mov edx, dword [eax + 0xc]
mov ecx, 0x56cf78
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
push eax
push str.S_MRL
lea edi, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.0040b0b0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx]
mov esi, dword [esp + 0x14]
mov eax, dword [edx]
add esp, 8
push 1
push esi
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412eff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 8

Function at 0x4134b0
Capabilities:
Hide graphical window

Disassembly:
push ecx
test esi, esi
jne 0x4134b9
xor al, al
pop ecx
ret
cmp dword [ebx], esi
je 0x413549
mov dword [ebx], esi
mov ecx, dword [esi + 4]
mov dword [esp], 0
test ecx, ecx
je 0x4134e9
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp]
push edx
push 0x5380e0
call eax
test eax, eax
jge 0x4134e9
xor ecx, ecx
jmp 0x4134ec
mov ecx, dword [esp]
mov edx, dword [ecx]
mov eax, dword [edx]
push ebp
push edi
push 1
call eax
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx]
mov edi, eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x10]
push eax
call edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x10]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ecx
call ebp
test edi, edi
je 0x413534
mov edx, dword [esi + 8]
cmp edi, dword [edx + 0x10]
je 0x413534
push 0
push edi
call ebp
mov eax, dword [ebx + 0x28]
push 0
push 0
push 0x7eb
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebp
mov al, 1
pop ecx
ret
Function at 0x413eb0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5272a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
je 0x4140ea
cmp word [esi], bx
je 0x4140ea
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
push ebx
push ebx
push 0x859
push ecx
call edx
movzx ecx, byte [ebp + 0xc]
add esp, 0x10
mov byte [esp + 0x17], bl
cmp ecx, 8
ja case.default.0x413f1f
movzx ecx, byte [ecx + 0x414110]
jmp dword [ecx*4 + 0x414104]
cmp eax, 0xfde9
je 0x4140ea
push 0xc
call fcn.00501e17
add esp, 4
cmp eax, ebx
je 0x413f56
mov dword [eax + 4], 0xffffffff
mov byte [eax + 8], bl
mov dword [eax], 0x538618
mov edi, eax
jmp 0x41400a
xor eax, eax
mov edi, eax
jmp 0x41400a
cmp eax, 0xfde9
jne 0x4140ea
push 0xc
call fcn.00501e17
add esp, 4
cmp eax, ebx
je 0x413f9e
mov dword [eax], 0x537de8
mov dword [eax + 4], 0xffffffff
cmp byte [ebp + 0xc], 3
mov dword [eax], 0x53860c
sete dl
mov byte [eax + 8], dl
mov edi, eax
mov ebx, 1
jmp 0x41400a
xor eax, eax
mov edi, eax
lea ebx, [eax + 1]
jmp 0x41400a
cmp eax, 0xfde9
jne 0x4140ea
push 0x14
call fcn.00501e17
add esp, 4
cmp eax, ebx
je 0x413f9e
mov cl, byte [ebp + 0xc]
cmp cl, 5
je 0x413fd1
cmp cl, 7
je 0x413fd1
xor dl, dl
jmp 0x413fd3
mov dl, 1
cmp cl, 6
je 0x413fe1
cmp cl, 5
je 0x413fe1
xor cl, cl
jmp 0x413fe3
mov cl, 1
mov dword [eax + 0x10], ebx
mov dword [eax + 4], 0xffffffff
mov byte [eax + 8], cl
mov dword [eax], 0x537df4
mov byte [eax + 0xc], dl
mov edi, eax
mov ebx, 1
jmp 0x41400a
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x4140d1
call fcn.0040ccb0
test al, al
je 0x4140d1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
push 0
push 0
push 0x7d6
push ecx
call edx
xor ecx, ecx
add esp, 0x10
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
cdq
mov dword [esp + 0x40], ecx
test edx, edx
jl 0x4140a0
jg 0x414062
test eax, eax
jbe 0x4140a0
push 0
push eax
push edx
push 4
push 0
push 0xffffffffffffffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4140c1
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
setne al
mov dword [esp + 0x24], ecx
test al, al
je 0x4140c1
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
xor edx, edx
call fcn.0040e870
mov ecx, dword [esp + 0x24]
mov eax, dword [edi]
mov edx, dword [eax + 4]
push ebx
push esi
push ecx
mov ecx, edi
call edx
mov byte [esp + 0x17], al
mov esi, edi
call fcn.0040cd80
lea esi, [esp + 0x1c]
call section..text
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x414a50
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x144
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x4a]
push ecx
mov word [esp + 0x4c], ax
call fcn.005033b0
add esp, 0xc
push 0x7f
lea edx, [esp + 0x44]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
lea eax, [esp + 0x40]
push eax
push str.Progman
call edi
test eax, eax
jne 0x414ace
push 0x7f
lea ecx, [esp + 0x44]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x40]
push edx
push str.Program_Manager
call edi
test eax, eax
je 0x414b8a
push 1
push esi
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je 0x414b8a
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x28
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x414b8a
lea edx, [esp + 0x30]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x414b8a
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x30]
jne 0x414b71
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x38]
jne 0x414b71
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x34]
jne 0x414b71
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x3c]
jne 0x414b71
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00501b9a
add esp, 0x144
ret
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00501b9a
add esp, 0x144
ret
mov ecx, dword [esp + 0x144]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.00501b9a
add esp, 0x144
ret

Function at 0x415190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52dd58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0xc]
mov ebx, edx
push eax
mov edx, 0x416280
call fcn.00415220
mov dword [esp + 0x30], 0
cmp dword [esp + 0x20], 8
mov edx, dword [esp + 0xc]
jae 0x4151e9
lea edx, [esp + 0xc]
call fcn.00414e60
cmp dword [esp + 0x20], 8
jb 0x415202
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00501b8f
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00501b9a
add esp, 0x2c
ret
Function at 0x416a30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x38
lea eax, [esp + 8]
push 0
push eax
call fcn.005033b0
add esp, 0xc
cmp byte [esp + 0x44], 0
mov dword [esp], 0x3c
mov dword [esp + 4], 0x40
mov dword [esp + 8], 0
je 0x416a6a
mov dword [esp + 0xc], 0x54e3d4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x416a80
cmp word [esi], 0
je 0x416a80
mov dword [esp + 0x14], esi
lea edx, [esp]
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x416aac
xor al, al
add esp, 0x3c
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x416acb
test edi, edi
je 0x416ac4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add esp, 0x3c
ret

Function at 0x416ae0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x258
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
mov dword [esp + 0x1c], 0x122
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x416b37
xor al, al
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.00501b9a
add esp, 0x258
ret
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416b5a
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x258]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00501b9a
add esp, 0x258
ret
Function at 0x41a4d0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x41a4ef
mov dword [edi + 8], ebx
mov dword [edi], 1
mov dword [edi + 4], ebx
mov eax, edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], ebx
call fcn.0041a470
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x41a51e
push esi
call fcn.0050317e
add esp, 4
mov dword [edi + 8], ebx
mov dword [edi], ebp
mov dword [edi + 4], ebx
mov eax, edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebp, dword [esp + 0xc]
mov eax, ebp
cmp ebp, ebx
ja 0x41a52d
mov eax, 1
push eax
call dword [0x56b960]
add esp, 4
mov ebx, eax
push esi
test ebx, ebx
jne 0x41a55b
call fcn.0050317e
add esp, 4
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], 3
mov eax, edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebp
push 1
push ebx
call fcn.005076f2
push esi
mov dword [esp + 0x20], eax
call fcn.0050317e
add esp, 0x14
cmp dword [esp + 0xc], ebp
je 0x41a596
push ebx
call dword [0x56b964]
add esp, 4
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], 2
mov eax, edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x14]
push 1
push 1
push ebx
push edi
push ecx
mov eax, ebp
call fcn.0041ae20
pop esi
pop ebp
mov eax, edi
pop ebx
pop ecx
ret

Function at 0x41c520
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x41c54d
lea ebx, [ebx]
movzx ecx, cx
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x41c530
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
Function at 0x42fb00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x528443
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.004f06a5
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x42fb51
mov eax, dword [esi + 0x1c]
push eax
call fcn.00501b8f
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4337e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52d3a8
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push eax
xor ebx, ebx
push esi
mov ecx, ebp
mov dword [esp + 0x34], ebx
call fcn.00433c80
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x20], ebx
lea edx, [esp + 0x30]
lea edi, [esi + 0x54]
push edx
lea eax, [esi + 0x64]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov byte [edi + 8], bl
push eax
mov dword [esi + 0x60], ebx
call fcn.004340f0
mov eax, esi
cmp dword [esi + 8], ebx
je 0x433855
call fcn.00463270
mov dword [esi + 0x50], eax
jmp 0x433873
call fcn.00433c10
test al, al
je 0x433870
mov ecx, dword [esp + 0x28]
mov dword [edi], ecx
mov dword [esi + 0x58], ebp
mov byte [esi + 0x5c], 1
mov dword [esi + 0x50], edi
jmp 0x433873
mov dword [esi + 0x50], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc