joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007a490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1007a5a0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1007a565
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1007a4d5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10091004]
ja 0x1007a4d5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1007a4a5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1007a4fa
jmp 0x1007a565
cmp dword [ebp - 0x14], 0x10000
jne 0x1007a54e
cmp dword [ebp - 0x18], 0x10000
jb 0x1007a54e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1007a531
mov eax, dword [ebp - 8]
jmp 0x1007a567
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1007a541
xor eax, eax
jmp 0x1007a567
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1007a560
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1007a5a0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1007a4a5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1007a5d0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1007a9c0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10092c38], 0
jne 0x1007a60d
cmp dword [0x10092c34], 0
je 0x1007a60d
mov eax, dword [0x10092c34]
mov dword [0x10092c38], eax
cmp dword [0x10092c38], 0
je 0x1007a68a
mov ecx, dword [0x10092c38]
cmp dword [ecx + 8], 0
je 0x1007a68a
mov edx, dword [0x10092c38]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1007a68a
mov ecx, dword [0x10092c38]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1007a68a
mov eax, dword [0x10092c38]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1007a659
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1007a660
xor eax, eax
jmp 0x1007a7a9
mov ecx, dword [0x10092c38]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1007a7a9
mov edx, dword [0x10092c34]
mov dword [0x10092c38], edx
jmp 0x1007a6a6
mov eax, dword [0x10092c38]
mov ecx, dword [eax + 4]
mov dword [0x10092c38], ecx
cmp dword [0x10092c38], 0
je 0x1007a6e6
cmp dword [0x10092c38], 0
je 0x1007a6e4
mov edx, dword [0x10092c38]
cmp dword [edx + 8], 0
je 0x1007a6e4
mov eax, dword [0x10092c38]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1007a6e4
mov edx, dword [0x10092c38]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1007a6e4
jmp 0x1007a63e
jmp 0x1007a698
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1007a7b0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1007a7a7
mov eax, dword [ebp - 0x18]
mov dword [0x10092c38], eax
mov ecx, dword [0x10092c38]
mov dword [ecx], 0x52727464
mov edx, dword [0x10092c38]
mov dword [edx + 8], 0
mov eax, dword [0x10092c38]
mov ecx, dword [0x10092c34]
mov dword [eax + 4], ecx
mov edx, dword [0x10092c38]
mov dword [0x10092c34], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10092c38]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1007a777
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1007a797
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1007a76e
mov eax, dword [0x10092c38]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1007a63e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1007b4f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10092c34]
mov dword [ebp - 4], eax
jmp 0x1007b509
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1007b530
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1007b52e
call sub.KERNEL32.dll_GetLastError
jmp 0x1007b532
jmp 0x1007b500
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1007b9d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10092c44], eax
je 0x1007b9f4
mov eax, 0x10dd
jmp 0x1007bb9c
cmp dword [0x10092c48], 0
je 0x1007ba07
mov eax, dword [0x10092c48]
jmp 0x1007bb9c
cmp dword [ebp + 0xc], 0
jne 0x1007ba17
mov eax, 0x57
jmp 0x1007bb9c
cmp dword [ebp + 8], 0
jne 0x1007ba27
mov eax, 6
jmp 0x1007bb9c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1007ba50
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10092c48], ecx
mov edx, dword [ebp + 8]
mov dword [0x10092c4c], edx
mov eax, dword [ebp - 8]
jmp 0x1007bb9c
push 0x18
call fcn.1007d0b2
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1007baab
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10092c48], ecx
cmp dword [ebp - 4], 0
je 0x1007ba9a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1007d105
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10092c4c], ecx
mov eax, dword [ebp - 8]
jmp 0x1007bb9c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1007b9b0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1007b9b0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1007baeb
cmp dword [ebp - 0xc], 0x1e
jbe 0x1007bb07
mov dword [ebp - 8], 9
cmp dword [0x10092c3c], 0
je 0x1007bb02
jmp 0x1007ba79
jmp 0x1007ba70
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1007bb2e
mov dword [ebp - 8], 9
cmp dword [0x10092c3c], 0
je 0x1007bb29
jmp 0x1007ba79
jmp 0x1007ba70
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1007bb59
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1007ba70
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10092c54]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10092c54], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1007bbb0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10092c44], eax
je 0x1007bbcd
mov eax, 0x10dd
jmp 0x1007bcb0
mov eax, dword [0x10092c54]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1007bc4c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1007bc28
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1007bc28
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1007aa50
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1007d105
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1007bbd5
mov dword [0x10092c54], 0
call fcn.1007b330
mov ecx, dword [0x10092c50]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1007bc9a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1007d105
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1007bc64
mov dword [0x10092c50], 0
mov dword [0x10092c44], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1007c190
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10092c48], 0
je 0x1007c1a9
mov eax, dword [0x10092c48]
jmp 0x1007c248
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1007c1ba
xor eax, eax
jmp 0x1007c248
push 8
call fcn.1007d0b2
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1007c212
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1007c1fb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1007d105
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10092c48], eax
mov dword [0x10092c4c], 0
mov eax, dword [ebp - 8]
jmp 0x1007c248
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1007c22a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1007c1da
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10092c50]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10092c50], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40158d
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
inc esp
or byte [eax], bl
jbe 0x4015c8
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4015af
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4015c0
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4015ca
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4015a5
xor eax, eax
pop edi
pop esi
ret

Function at 0x401590
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
inc esp
or byte [eax], bl
jbe 0x4015c8
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4015af
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4015c0
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4015ca
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4015a5
xor eax, eax
pop edi
pop esi
ret

Function at 0x4017e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040154d
sal dword [eax + 0x458d8e53], cl
test al, 0x50
call fcn.0040155d
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00401512
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40183b
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040154d
invalid
Function at 0x401910
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg ebp, eax
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040155d
push eax
push esi
push dword [ebp + 8]
call fcn.00401512
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040155d
push eax
push esi
push dword [ebp + 8]
call fcn.00401512
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040154d
cmpsb byte [esi], byte es:[edi]
nop
fisub word [ebp - 0x78]

Function at 0x401c20
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x401c24
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
add byte [eax - 0x15], ah
push ds
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x401ca0
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
invalid
je 0x401c87
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x401c90
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x401c9a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x401c7c
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x401c06
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x401c50
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x401c24
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
add byte [eax - 0x15], ah
push ds
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x401ca0
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
invalid
je 0x401c87
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x401c90
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x401c9a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x401c7c
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x401c06
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x401c80
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x401c24
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
add byte [eax - 0x15], ah
push ds
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x401ca0
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
invalid
je 0x401c87
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x401c90
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x401c9a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x401c7c
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x401c06
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x443769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x447190
cmp edx, dword [eax]
je 0x44378b
add eax, 8
inc ecx
cmp eax, 0x447220
jl 0x44377c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x447190]
jne 0x4438b9
mov eax, dword [0x447bb0]
cmp eax, 1
je 0x443893
test eax, eax
jne 0x4437bc
cmp dword [0x4470e4], 1
je 0x443893
cmp edx, 0xfc
je 0x4438b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4437f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00444670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00444490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x443836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00444490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44645c
push edi
call fcn.00444f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00444670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00444680
lea eax, [ebp - 0xa0]
push 0x44643c
push eax
call fcn.00444680
push dword [esi + 0x447194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00444680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00444e75
add esp, 0x2c
pop edi
jmp 0x4438b9
lea eax, [ebp + 8]
lea esi, [esi + 0x447194]
push 0
push eax
push dword [esi]
call fcn.00444490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x401840
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x11c
lea eax, [esp + 0x10]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
xor edx, edx
sub esp, 4
test eax, eax
je 0x401873
cmp byte [esp + 0x22], 0
mov edx, 1
js 0x401873
movzx edx, byte [esp + 0xb5]
shr dl, 7
mov eax, edx
add esp, 0x11c
ret

Function at 0x403ad0
Capabilities:
Get geographical location

Disassembly:
push ebx
movzx eax, ax
sub esp, 0x38
lea ebx, [esp + 0x1c]
mov dword [esp + 0xc], 0x14
mov dword [esp + 4], 0x1004
mov dword [esp], eax
mov dword [esp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
sub esp, 0x10
mov dword [esp], ebx
call sub.msvcrt.dll_atoi
mov dword [0x514298], eax
add esp, 0x38
pop ebx
ret

Function at 0x410310
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
cmp dword [esp + 0x20], 2
mov ebx, dword [esp + 0x2c]
je 0x410330
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x28]
mov dword [esp], 0x2002
add eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
sub esp, 8
test eax, eax
mov esi, eax
je 0x410321
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
test eax, eax
mov edi, eax
je 0x410321
mov eax, dword [esp + 0x28]
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x28]
mov byte [edi + eax], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 4
test bl, bl
je 0x410412
mov eax, dword [0x4df008]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
test eax, eax
jne 0x4103f0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
sub esp, 4
test bl, bl
jne 0x410321
mov eax, dword [0x4df008]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8002
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageA]
sub esp, 0x10
jmp 0x410321
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov dword [esp + 4], esi
mov dword [esp], 1
call dword [sym.imp.USER32.dll_SetClipboardData]
sub esp, 8
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4103b4
mov eax, dword [0x4df008]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x8002
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageA]
sub esp, 0x10
jmp 0x410393
Function at 0x412b80
Capabilities:
Read file via mapping

Disassembly:
push esi
push ebx
sub esp, 0x44
mov eax, dword [esp + 0x50]
cmp byte [eax], 0x26
je 0x412ba0
xor ebx, ebx
add esp, 0x44
mov eax, ebx
pop ebx
pop esi
ret
lea edx, [esp + 0x28]
add eax, 1
mov dword [esp + 4], str._p:_u
mov dword [esp], eax
mov dword [esp + 0xc], edx
lea edx, [esp + 0x24]
mov dword [esp + 8], edx
call sub.msvcrt.dll_sscanf
cmp eax, 2
jne 0x412b8e
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
mov esi, eax
je 0x412b8e
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.004cba30
test al, al
mov ebx, eax
je 0x412c59
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
sub esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x412b90
mov dword [esp], 0x4e4168
call fcn.00410440
lea esi, [esi]
lea edi, [edi]
push esi
push ebx
sub esp, 0x14
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004cc040
mov ebx, eax
mov eax, 1
call fcn.00401c80
mov eax, dword [0x4e49ac]
mov dword [esp], str._s_Error
mov dword [esp + 4], eax
call fcn.004cc080
mov esi, eax
mov eax, dword [0x4df010]
mov dword [esp + 4], ebx
mov dword [esp], 0x4df010
call dword [eax]
mov eax, dword [0x522678]
mov dword [esp + 4], 0x33
mov dword [esp], eax
call fcn.004cad30
test al, al
je 0x412cf0
mov eax, dword [0x522678]
mov dword [esp + 4], 0x117
mov dword [esp], eax
call fcn.004cad30
test al, al
je 0x412d11
mov eax, dword [0x4df008]
mov dword [esp + 0xc], 0x51010
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov dword [esp], ebx
call fcn.004cd6d0
mov dword [esp], esi
call fcn.004cd6d0
add esp, 0x14
pop ebx
pop esi
ret