joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3af147e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x3af331e8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.3af23da0
add esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x74]
add edx, 0x30
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x3af14a30
call fcn.3af11080
mov ecx, eax
call fcn.3af1f400
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x6d
je 0x3af14a30
cmp dword [ebp - 8], 0xea
je 0x3af14a30
cmp dword [ebp - 8], 0x3e5
je 0x3af14a30
mov edx, 0x5b
mov word [ebp - 0x70], dx
mov eax, 0x2d
mov word [ebp - 0x6e], ax
mov ecx, 0x5d
mov word [ebp - 0x6c], cx
mov edx, 0x20
mov word [ebp - 0x6a], dx
mov eax, 0x65
mov word [ebp - 0x68], ax
mov ecx, 0x72
mov word [ebp - 0x66], cx
mov edx, 0x72
mov word [ebp - 0x64], dx
mov eax, 0x6f
mov word [ebp - 0x62], ax
mov ecx, 0x72
mov word [ebp - 0x60], cx
mov edx, 0x20
mov word [ebp - 0x5e], dx
mov eax, 0x61
mov word [ebp - 0x5c], ax
mov ecx, 0x74
mov word [ebp - 0x5a], cx
mov edx, 0x20
mov word [ebp - 0x58], dx
mov eax, 0x52
mov word [ebp - 0x56], ax
mov ecx, 0x65
mov word [ebp - 0x54], cx
mov edx, 0x61
mov word [ebp - 0x52], dx
mov eax, 0x64
mov word [ebp - 0x50], ax
mov ecx, 0x46
mov word [ebp - 0x4e], cx
mov edx, 0x69
mov word [ebp - 0x4c], dx
mov eax, 0x6c
mov word [ebp - 0x4a], ax
mov ecx, 0x65
mov word [ebp - 0x48], cx
mov edx, 0x28
mov word [ebp - 0x46], dx
mov eax, 0x29
mov word [ebp - 0x44], ax
mov ecx, 0x20
mov word [ebp - 0x42], cx
mov edx, 0x69
mov word [ebp - 0x40], dx
mov eax, 0x6e
mov word [ebp - 0x3e], ax
mov ecx, 0x20
mov word [ebp - 0x3c], cx
mov edx, 0x52
mov word [ebp - 0x3a], dx
mov eax, 0x65
mov word [ebp - 0x38], ax
mov ecx, 0x63
mov word [ebp - 0x36], cx
mov edx, 0x76
mov word [ebp - 0x34], dx
mov eax, 0x52
mov word [ebp - 0x32], ax
mov ecx, 0x65
mov word [ebp - 0x30], cx
mov edx, 0x71
mov word [ebp - 0x2e], dx
mov eax, 0x75
mov word [ebp - 0x2c], ax
mov ecx, 0x65
mov word [ebp - 0x2a], cx
mov edx, 0x73
mov word [ebp - 0x28], dx
mov eax, 0x74
mov word [ebp - 0x26], ax
mov ecx, 0x28
mov word [ebp - 0x24], cx
mov edx, 0x29
mov word [ebp - 0x22], dx
mov eax, 0x20
mov word [ebp - 0x20], ax
mov ecx, 0x3a
mov word [ebp - 0x1e], cx
mov edx, 0x20
mov word [ebp - 0x1c], dx
mov eax, 0x25
mov word [ebp - 0x1a], ax
mov ecx, 0x75
mov word [ebp - 0x18], cx
xor edx, edx
mov word [ebp - 0x16], dx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0x3af351f8
call fcn.3af1d820
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x70]
push eax
push 0x3af351f8
call fcn.3af1d820
add esp, 0xc
xor al, al
jmp 0x3af14a32
mov al, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.3af212b5
mov esp, ebp
pop ebp
ret 8
Function at 0x3af14a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x3af331e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx]
call eax
cmp dword [ebp - 4], eax
jae 0x3af14c9f
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
call edx
sub eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x3af14c91
mov eax, 0x5b
mov word [ebp - 0x68], ax
mov ecx, 0x2d
mov word [ebp - 0x66], cx
mov edx, 0x5d
mov word [ebp - 0x64], dx
mov eax, 0x20
mov word [ebp - 0x62], ax
mov ecx, 0x65
mov word [ebp - 0x60], cx
mov edx, 0x72
mov word [ebp - 0x5e], dx
mov eax, 0x72
mov word [ebp - 0x5c], ax
mov ecx, 0x6f
mov word [ebp - 0x5a], cx
mov edx, 0x72
mov word [ebp - 0x58], dx
mov eax, 0x20
mov word [ebp - 0x56], ax
mov ecx, 0x61
mov word [ebp - 0x54], cx
mov edx, 0x74
mov word [ebp - 0x52], dx
mov eax, 0x20
mov word [ebp - 0x50], ax
mov ecx, 0x57
mov word [ebp - 0x4e], cx
mov edx, 0x72
mov word [ebp - 0x4c], dx
mov eax, 0x69
mov word [ebp - 0x4a], ax
mov ecx, 0x74
mov word [ebp - 0x48], cx
mov edx, 0x65
mov word [ebp - 0x46], dx
mov eax, 0x46
mov word [ebp - 0x44], ax
mov ecx, 0x69
mov word [ebp - 0x42], cx
mov edx, 0x6c
mov word [ebp - 0x40], dx
mov eax, 0x65
mov word [ebp - 0x3e], ax
mov ecx, 0x28
mov word [ebp - 0x3c], cx
mov edx, 0x29
mov word [ebp - 0x3a], dx
mov eax, 0x20
mov word [ebp - 0x38], ax
mov ecx, 0x69
mov word [ebp - 0x36], cx
mov edx, 0x6e
mov word [ebp - 0x34], dx
mov eax, 0x20
mov word [ebp - 0x32], ax
mov ecx, 0x53
mov word [ebp - 0x30], cx
mov edx, 0x65
mov word [ebp - 0x2e], dx
mov eax, 0x6e
mov word [ebp - 0x2c], ax
mov ecx, 0x64
mov word [ebp - 0x2a], cx
mov edx, 0x44
mov word [ebp - 0x28], dx
mov eax, 0x61
mov word [ebp - 0x26], ax
mov ecx, 0x74
mov word [ebp - 0x24], cx
mov edx, 0x61
mov word [ebp - 0x22], dx
mov eax, 0x28
mov word [ebp - 0x20], ax
mov ecx, 0x29
mov word [ebp - 0x1e], cx
mov edx, 0x20
mov word [ebp - 0x1c], dx
mov eax, 0x3a
mov word [ebp - 0x1a], ax
mov ecx, 0x20
mov word [ebp - 0x18], cx
mov edx, 0x25
mov word [ebp - 0x16], dx
mov eax, 0x75
mov word [ebp - 0x14], ax
xor ecx, ecx
mov word [ebp - 0x12], cx
call fcn.3af11080
mov ecx, eax
call fcn.3af1f400
push eax
lea edx, [ebp - 0x68]
push edx
push 0x3af351f8
call fcn.3af1d820
add esp, 0xc
call fcn.3af11080
mov ecx, eax
call fcn.3af1f400
push eax
lea eax, [ebp - 0x68]
push eax
push 0x3af351f8
call fcn.3af1d820
add esp, 0xc
xor al, al
jmp 0x3af14ca1
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x3af14a7a
mov al, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.3af212b5
mov esp, ebp
pop ebp
ret 4
Function at 0x3af18350
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3af2dad8
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x3af331e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x3c], 0
jmp 0x3af18393
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x3af183be
mov ecx, dword [ebp + 8]
push ecx
call fcn.3af17000
push eax
push str._s_s.log
push 0x104
lea edx, [ebp - 0x244]
push edx
call fcn.3af21ab6
add esp, 0x14
jmp 0x3af183e5
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3af17000
push eax
push str._s_s__u.log
push 0x104
lea edx, [ebp - 0x244]
push edx
call fcn.3af21ab6
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov ecx, dword [ebp - 0x258]
add ecx, 0x1c
call fcn.3af18ef0
mov ecx, dword [ebp - 0x258]
add ecx, 0x1c
call fcn.3af18ed0
movzx ecx, al
test ecx, ecx
je 0x3af1842a
jmp 0x3af1846b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0x20
je 0x3af18466
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x244]
push edx
push str.____error_at_CreateFile__s__for_log_:__u
push 0x3af351f8
call fcn.3af1d820
add esp, 0x10
xor al, al
jmp 0x3af186d1
jmp 0x3af1838a
push 2
push 0
push 0
mov ecx, dword [ebp - 0x258]
add ecx, 0x1c
call fcn.3af1cc50
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
mov ecx, dword [ebp - 0x258]
add ecx, 0x1c
call fcn.3af1cc50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x3af184d0
mov dword [ebp - 0x24c], 0
push 0
lea eax, [ebp - 0x24c]
push eax
push 4
push 0x3af304ec
mov ecx, dword [ebp - 0x258]
add ecx, 0x1c
call fcn.3af1cc50
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x3af5b93b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.3af212b5
mov esp, ebp
pop ebp
ret 8
Function at 0x3af1bd10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x811c9dc5
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x3af1bd42
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x1000193
mov edx, dword [ebp + 8]
movzx eax, word [edx]
xor ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp + 8], ecx
jmp 0x3af1bd1b
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x3af1d7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x1c
call fcn.3af1cc50
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x3af1e660
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x3af331e8]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov dword [eax], vtable.SecureAPI.0
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 4], 1
mov edx, 0x6b
mov word [ebp - 0x34], dx
mov eax, 0x65
mov word [ebp - 0x32], ax
mov ecx, 0x72
mov word [ebp - 0x30], cx
mov edx, 0x6e
mov word [ebp - 0x2e], dx
mov eax, 0x65
mov word [ebp - 0x2c], ax
mov ecx, 0x6c
mov word [ebp - 0x2a], cx
mov edx, 0x33
mov word [ebp - 0x28], dx
mov eax, 0x32
mov word [ebp - 0x26], ax
mov ecx, 0x2e
mov word [ebp - 0x24], cx
mov edx, 0x64
mov word [ebp - 0x22], dx
mov eax, 0x6c
mov word [ebp - 0x20], ax
mov ecx, 0x6c
mov word [ebp - 0x1e], cx
xor edx, edx
mov word [ebp - 0x1c], dx
mov byte [ebp - 0x18], 0x49
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x57
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x77
mov byte [ebp - 0x13], 0x36
mov byte [ebp - 0x12], 0x34
mov byte [ebp - 0x11], 0x50
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x63
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x73
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.3af1f410
push eax
mov ecx, dword [ebp - 0x38]
call fcn.3af1f4b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3af1e769
mov edx, dword [ebp - 0x38]
add edx, 4
push edx
mov ecx, dword [ebp - 0x38]
call fcn.3af1f3d0
push eax
call dword [ebp - 4]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.3af212b5
mov esp, ebp
pop ebp
ret
Function at 0x3af1f410
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x3af1f491
mov dword [ebp - 8], 0
pushal
pushfd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
popfd
popal
mov eax, dword [ebp - 8]
add eax, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x3af1f48f
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.3af2249e
add esp, 8
test eax, eax
jne 0x3af1f485
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x18]
mov dword [ebp - 4], eax
jmp 0x3af1f48f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
jmp 0x3af1f455
jmp 0x3af1f4a4
pushal
pushfd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
popfd
popal
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x3af1f4b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x7c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 8], 0
jne 0x3af1f4f5
mov eax, dword [ebp - 4]
jmp 0x3af1f63d
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], 0
jmp 0x3af1f534
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x14]
jae 0x3af1f63a
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp dword [eax + edx*4], 0
jne 0x3af1f558
jmp 0x3af1f52b
mov dword [ebp - 0x30], 0
jmp 0x3af1f56a
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
cmp eax, dword [edx + 0x18]
jae 0x3af1f597
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + ecx*2]
cmp eax, dword [ebp - 0x28]
jne 0x3af1f595
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x2c], eax
jmp 0x3af1f597
jmp 0x3af1f561
cmp dword [ebp - 0x2c], 0
je 0x3af1f635
cmp dword [ebp + 0xc], 0
je 0x3af1f635
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax]
mov byte [ebp - 0x3d], cl
mov edx, dword [ebp - 0x38]
cmp cl, byte [edx]
jne 0x3af1f5f4
cmp byte [ebp - 0x3d], 0
je 0x3af1f5eb
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x3e], cl
mov edx, dword [ebp - 0x38]
cmp cl, byte [edx + 1]
jne 0x3af1f5f4
add dword [ebp - 0x3c], 2
add dword [ebp - 0x38], 2
cmp byte [ebp - 0x3e], 0
jne 0x3af1f5b7
mov dword [ebp - 0x44], 0
jmp 0x3af1f5fc
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
jne 0x3af1f635
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp - 8]
jb 0x3af1f624
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp - 0x1c]
jb 0x3af1f633
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 4], ecx
jmp 0x3af1f63a
jmp 0x3af1f52b
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x3af1ff00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x3af1ff44
mov edx, dword [ebp - 8]
mov dword [edx + 0x20c], 0
mov eax, dword [ebp - 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x3af212b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3af331e8]
jne 0x3af212bf
repz ret
jmp fcn.3af228bf

Function at 0x3af26841
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x3af331e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.3af22c38
and dword [ebp - 0x14], 0
cmp dword [0x3af3510c], 0
mov dword [ebp - 0x18], eax
jne 0x3af268f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x3af2699c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x3af2699c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x3af3510c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x3af35110], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x3af35114], eax
call edi
push eax
call esi
mov dword [0x3af3511c], eax
test eax, eax
je 0x3af268f4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x3af35118], eax
mov eax, dword [0x3af35118]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x3af2694d
cmp dword [0x3af3511c], ecx
je 0x3af2694d
push eax
call esi
push dword [0x3af3511c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x3af2694d
test ebx, ebx
je 0x3af2694d
call edi
test eax, eax
je 0x3af26944
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x3af26944
test byte [ebp - 8], 1
jne 0x3af2694d
or dword [ebp + 0x10], 0x200000
jmp 0x3af26980
mov eax, dword [0x3af35110]
cmp eax, dword [ebp - 0x18]
je 0x3af26980
push eax
call esi
test eax, eax
je 0x3af26980
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x3af26980
mov eax, dword [0x3af35114]
cmp eax, dword [ebp - 0x18]
je 0x3af26980
push eax
call esi
test eax, eax
je 0x3af26980
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x3af3510c]
call esi
test eax, eax
je 0x3af2699c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x3af2699e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3af212b5
leave
ret
Function at 0x41c3a7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c049

Function at 0x41c3b2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c1d8

Function at 0x41c7ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b950
mov eax, dword [0x435100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041a30f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c7ee
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c94a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427050
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x481c50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041d97c
mov ecx, dword [esi*4 + 0x481c50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41c943
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c943
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c943
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d97c
add esp, 0x14
test edx, edx
jl 0x41c943
jg 0x41c8b9
test eax, eax
jb 0x41c943
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c943
jl 0x41c8d3
cmp dword [ebp - 0x1008], eax
ja 0x41c943
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c8f1
test ebx, ebx
je 0x41c92a
cmp ecx, edi
jae 0x41c92a
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c90b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c917
cmp byte [ecx + 1], 0xa
jne 0x41c917
inc ecx
jmp 0x41c917
movzx eax, al
movsx eax, byte [eax + 0x4353d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c8f1
cmp edx, ebx
jne 0x41c8f1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c948
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040aa09
leave
ret
Function at 0x41ce1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x481c50]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ce5a
cmp byte [ebx], 0xa
jne 0x41ce5a
or byte [eax + edi + 0x28], 4
jmp 0x41ce5f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41cf5d
mov al, byte [edx]
cmp al, 0x1a
je 0x41cf3f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ce8e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ceb3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41cebd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41ce70
jmp 0x41cf5d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cf3a
cmp dword [ebp - 0xc], 0
je 0x41cf3a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481c50]
test byte [eax + edi + 0x28], 0x48
je 0x41cf14
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ceff
mov byte [esi], dl
jmp 0x41cf10
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481c50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41cf5d
cmp byte [ebp - 1], 0xa
jne 0x41cf23
cmp esi, ebx
jne 0x41cf23
mov byte [esi], 0xa
jmp 0x41cf5c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d99a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41cf5d
mov byte [esi], 0xd
jmp 0x41cf5c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481c50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cf59
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cf5d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret