joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e140
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8bfb
mov eax, dword fs:[0]
push eax
sub esp, 0x6ec
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], 0x80004005
mov word [ebp - 0x21c], 0
push 0x1fe
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004857c0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
push 0xffffffffffffffff
mov edx, dword [0x4e655c]
push edx
push pe_nt_image_headers32
lea eax, [ebp - 0x21c]
push eax
call fcn.00487869
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
call fcn.0047feb0
push 0xa
lea edx, [ebp - 0x21c]
push edx
call fcn.004c7da0
push eax
call fcn.004c7db0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x47e1ed
jmp 0x47e31b
mov eax, dword [ebp + 8]
add eax, 4
lea esi, [ebp - 0x224]
call fcn.0042bee7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00479d60
lea eax, [ebp - 0x6e8]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00480060
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], edx
jmp 0x47e249
push 0
lea eax, [ebp - 0x6f0]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00480020
lea ecx, [ebp - 0x6f8]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00479be0
push eax
lea ecx, [ebp - 0x22c]
call fcn.00479c30
movzx edx, al
test edx, edx
je 0x47e2f7
lea ecx, [ebp - 0x22c]
call fcn.00480120
mov eax, dword [eax]
mov dword [ebp - 0x6e0], eax
mov word [ebp - 0x6dc], 0
push 0x18e
push 0
lea ecx, [ebp - 0x6da]
push ecx
call fcn.004857c0
add esp, 0xc
push 0x320
push 0
lea edx, [ebp - 0x54c]
push edx
call fcn.004857c0
add esp, 0xc
cmp dword [ebp - 0x6e0], 0
jne 0x47e2c8
jmp 0x47e235
push 0x4b0
mov eax, dword [ebp - 0x6e0]
push eax
lea ecx, [ebp - 0x6dc]
push ecx
call fcn.00484d60
add esp, 0xc
lea edx, [ebp - 0x6dc]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0047fff0
jmp 0x47e235
mov ecx, dword [ebp + 8]
call fcn.0047c1f0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x224]
call fcn.0042bef3
mov dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret 8
Function at 0x47e6d0
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8b8b
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], 0x80004005
mov word [ebp - 0x21c], 0
push 0x1fe
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004857c0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
push 0xffffffffffffffff
mov edx, dword [str.SELECT__FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL_]
push edx
push pe_nt_image_headers32
lea eax, [ebp - 0x21c]
push eax
call fcn.00487869
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
call fcn.0047feb0
push 0xa
lea edx, [ebp - 0x21c]
push edx
call fcn.004c7da0
push eax
call fcn.004c7db0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x47e77d
jmp 0x47e8ff
mov eax, dword [ebp + 8]
add eax, 4
lea esi, [ebp - 0x224]
call fcn.0042bee7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00479d60
lea eax, [ebp - 0x878]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00480060
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], edx
jmp 0x47e7d9
push 0
lea eax, [ebp - 0x880]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00480020
lea ecx, [ebp - 0x888]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00479be0
push eax
lea ecx, [ebp - 0x22c]
call fcn.00479c30
movzx edx, al
test edx, edx
je 0x47e8e3
lea ecx, [ebp - 0x22c]
call fcn.00480120
mov eax, dword [eax]
mov dword [ebp - 0x870], eax
mov word [ebp - 0x86c], 0
push 0x18e
push 0
lea ecx, [ebp - 0x86a]
push ecx
call fcn.004857c0
add esp, 0xc
push 0x4b0
push 0
lea edx, [ebp - 0x6dc]
push edx
call fcn.004857c0
add esp, 0xc
push 0xffffffffffffffff
mov eax, dword [ebp - 0x870]
push eax
push 0xc8
lea ecx, [ebp - 0x86c]
push ecx
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov edx, dword [ebp - 0x870]
add edx, 0x190
push edx
push 0xc8
lea eax, [ebp - 0x6dc]
push eax
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x870]
add ecx, 0x320
push ecx
push 0xc8
lea edx, [ebp - 0x54c]
push edx
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov eax, dword [ebp - 0x870]
add eax, 0x4b0
push eax
push 0xc8
lea ecx, [ebp - 0x3bc]
push ecx
call fcn.00487869
add esp, 0x10
lea edx, [ebp - 0x86c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0047ff50
jmp 0x47e7c5
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x224]
call fcn.0042bef3
mov dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret 8
Function at 0x47eca0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d87ab
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], 0x80004005
mov word [ebp - 0x21c], 0
push 0x1fe
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004857c0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
push 0xffffffffffffffff
mov edx, dword [0x4e63b0]
push edx
push pe_nt_image_headers32
lea eax, [ebp - 0x21c]
push eax
call fcn.00487869
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
push 0xa
lea edx, [ebp - 0x21c]
push edx
call fcn.004c7da0
push eax
call fcn.004c7db0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x47ed45
jmp 0x47edd8
mov eax, dword [ebp + 8]
add eax, 4
lea esi, [ebp - 0x224]
call fcn.0042bee7
mov dword [ebp - 4], 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
push 0xc8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
add edx, 0x1ac
push edx
push 0xc8
mov eax, dword [ebp + 0xc]
add eax, 0x190
push eax
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x33c
push ecx
push 0xc8
mov edx, dword [ebp + 0xc]
add edx, 0x320
push edx
call fcn.00487869
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x224]
call fcn.0042bef3
mov dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret 8
Function at 0x47f0c0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8b1b
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], 0x80004005
mov word [ebp - 0x21c], 0
push 0x1fe
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004857c0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
push 0xffffffffffffffff
mov edx, dword [0x4e63f0]
push edx
push pe_nt_image_headers32
lea eax, [ebp - 0x21c]
push eax
call fcn.00487869
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
call fcn.0047feb0
push 0xa
lea edx, [ebp - 0x21c]
push edx
call fcn.004c7da0
push eax
call fcn.004c7db0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x47f16d
jmp 0x47f2c0
mov eax, dword [ebp + 8]
add eax, 4
lea esi, [ebp - 0x224]
call fcn.0042bee7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00479d60
lea eax, [ebp - 0x55c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00480060
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], edx
jmp 0x47f1c9
push 0
lea eax, [ebp - 0x564]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00480020
lea ecx, [ebp - 0x56c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00479be0
push eax
lea ecx, [ebp - 0x22c]
call fcn.00479c30
movzx edx, al
test edx, edx
je 0x47f29c
lea ecx, [ebp - 0x22c]
call fcn.00480120
mov eax, dword [eax]
mov dword [ebp - 0x230], eax
mov word [ebp - 0x554], 0
push 0x18e
push 0
lea ecx, [ebp - 0x552]
push ecx
call fcn.004857c0
add esp, 0xc
push 0x190
push 0
lea edx, [ebp - 0x3c4]
push edx
call fcn.004857c0
add esp, 0xc
cmp dword [ebp - 0x230], 0
jne 0x47f248
jmp 0x47f1b5
push 0xffffffffffffffff
mov eax, dword [ebp - 0x230]
push eax
push 0xc8
lea ecx, [ebp - 0x554]
push ecx
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov edx, dword [ebp - 0x230]
add edx, 0x190
push edx
push 0xc8
lea eax, [ebp - 0x3c4]
push eax
call fcn.00487869
add esp, 0x10
lea ecx, [ebp - 0x554]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00480090
jmp 0x47f1b5
mov ecx, dword [ebp + 8]
call fcn.0047c1f0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x224]
call fcn.0042bef3
mov dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret 8
Function at 0x47f6a0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d87ab
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], 0x80004005
mov word [ebp - 0x21c], 0
push 0x1fe
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004857c0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
push 0xffffffffffffffff
mov edx, dword [0x4e63f4]
push edx
push pe_nt_image_headers32
lea eax, [ebp - 0x21c]
push eax
call fcn.00487869
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
push 0xa
lea edx, [ebp - 0x21c]
push edx
call fcn.004c7da0
push eax
call fcn.004c7db0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x47f745
jmp 0x47f7d8
mov eax, dword [ebp + 8]
add eax, 4
lea esi, [ebp - 0x224]
call fcn.0042bee7
mov dword [ebp - 4], 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
push 0xc8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
add edx, 0x1ac
push edx
push 0xc8
mov eax, dword [ebp + 0xc]
add eax, 0x190
push eax
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x33c
push ecx
push 0xc8
mov edx, dword [ebp + 0xc]
add edx, 0x320
push edx
call fcn.00487869
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x224]
call fcn.0042bef3
mov dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret 8
Function at 0x47fbf0
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], 0x80004005
mov word [ebp - 0x21c], 0
push 0x1fe
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.004857c0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
push 0xffffffffffffffff
mov edx, dword [0x4e66f0]
push edx
push pe_nt_image_headers32
lea eax, [ebp - 0x21c]
push eax
call fcn.00487869
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
call fcn.0047feb0
push 0xa
lea edx, [ebp - 0x21c]
push edx
call fcn.004c7da0
push eax
call fcn.004c7db0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x47fc9d
jmp 0x47fe47
mov eax, dword [ebp + 8]
add eax, 4
lea esi, [ebp - 0x224]
call fcn.0042bee7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00479d60
lea eax, [ebp - 0x880]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00480060
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], edx
jmp 0x47fcf9
push 0
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00480020
lea ecx, [ebp - 0x890]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00479be0
push eax
lea ecx, [ebp - 0x22c]
call fcn.00479c30
movzx edx, al
test edx, edx
je 0x47fe23
lea ecx, [ebp - 0x22c]
call fcn.00480120
mov eax, dword [eax]
mov dword [ebp - 0x878], eax
mov word [ebp - 0x874], 0
push 0x18e
push 0
lea ecx, [ebp - 0x872]
push ecx
call fcn.004857c0
add esp, 0xc
push 0x4b4
push 0
lea edx, [ebp - 0x6e4]
push edx
call fcn.004857c0
add esp, 0xc
cmp dword [ebp - 0x878], 0
jne 0x47fd78
jmp 0x47fce5
push 0xffffffffffffffff
mov eax, dword [ebp - 0x878]
push eax
push 0xc8
lea ecx, [ebp - 0x874]
push ecx
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov edx, dword [ebp - 0x878]
add edx, 0x190
push edx
push 0xc8
lea eax, [ebp - 0x6e4]
push eax
call fcn.00487869
add esp, 0x10
mov ecx, dword [ebp - 0x878]
mov edx, dword [ecx + 0x320]
mov dword [ebp - 0x554], edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x878]
add eax, 0x324
push eax
push 0xc8
lea ecx, [ebp - 0x550]
push ecx
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov edx, dword [ebp - 0x878]
add edx, 0x4b4
push edx
push 0xc8
lea eax, [ebp - 0x3c0]
push eax
call fcn.00487869
add esp, 0x10
lea ecx, [ebp - 0x874]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004800f0
jmp 0x47fce5
mov ecx, dword [ebp + 8]
call fcn.0047c1f0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x224]
call fcn.0042bef3
mov dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret 8
Function at 0x4822e7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00482226
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004857c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x482336
cmp dword [ebp - 0x1c], 5
jb 0x48234e
jmp 0x48234a
cmp dword [ebp - 0x10], 1
jne 0x48234e
cmp dword [ebp - 0x1c], 4
ja 0x48234a
jne 0x48234e
cmp dword [ebp - 0x18], 0
jbe 0x48234e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4da8ac
call fcn.00434d08
test eax, eax
jge 0x48236f
mov byte [0x50b52c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048bcc6
add ebp, 0x78
leave
ret

Function at 0x482521
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5094e8], 0
push esi
jne 0x482494
call fcn.004823bf
test eax, eax
je 0x4824d7
mov eax, dword [0x5094e8]
cmp eax, 1
jne 0x4824b5
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x4824d7
pop esi
ret
push eax
call dword [0x5094f0]
test eax, eax
jne 0x48251f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4824db
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5094e8]
call dword [0x5094f0]
mov edi, eax
test edi, edi
je 0x482502
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x48251e
lea edi, [esi + 0xff0]
push esi
push dword [0x5094e8]
call dword [0x5094ec]
add esi, 0x10
cmp esi, edi
jb 0x482508
mov eax, esi
pop edi
pop esi
ret
jmp 0x482481

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x483a1d
call fcn.00487cd4
mov dword [eax], esi
call fcn.00487cc1
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00484b70
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4839f9
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x483a4c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00487ce7
pop ecx
call fcn.00487cc1
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x483a73
test al, 1
je 0x483a73
test byte [esp + 0xc], 2
je 0x483a73
call fcn.00487cd4
mov dword [eax], 5
call fcn.00487cc1
mov dword [eax], 0xd
jmp 0x483a43
xor eax, eax
pop esi
ret
Function at 0x4899de
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x489a1b
cmp dword [ebp + 0x14], edi
je 0x489a1b
cmp ecx, edi
jne 0x489a22
call fcn.00487cc1
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00484b70
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x489a36
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x489a57
cmp ebx, 0xffffffff
je 0x489a46
push ebx
push edi
push ecx
call fcn.004857c0
add esp, 0xc
cmp esi, edi
je 0x489a03
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x489a03
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x489a73
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x489a7a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x489b6b
test word [esi + 0xc], 0x10c
je 0x489ace
mov eax, dword [esi + 4]
test eax, eax
je 0x489ace
jl 0x489bcc
cmp ebx, eax
mov edi, ebx
jb 0x489a9f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x489b73
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048378f
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x489b63
cmp ebx, dword [ebp - 0xc]
jb 0x489b3b
cmp dword [ebp - 0xc], 0
je 0x489af8
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x489aed
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x489af4
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x489b03
mov eax, SysReAllocString
cmp ebx, eax
ja 0x489b03
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x489b9f
push eax
push dword [ebp - 8]
push esi
call fcn.00496b89
pop ecx
push eax
call fcn.00496a8c
add esp, 0xc
test eax, eax
je 0x489bde
cmp eax, 0xffffffff
je 0x489bcc
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x489b63
push esi
call fcn.004963ab
cmp eax, 0xffffffff
pop ecx
je 0x489bd0
cmp dword [ebp - 4], 0
je 0x489b9f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x489a82
mov eax, dword [ebp + 0x14]
jmp 0x489a1d
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x489b8a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004857c0
add esp, 0xc
call fcn.00487cc1
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x489a13
cmp dword [ebp + 0xc], 0xffffffff
je 0x489bb5
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004857c0
add esp, 0xc
call fcn.00487cc1
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x489a13
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x489a1d
or dword [esi + 0xc], 0x10
jmp 0x489bd0
Function at 0x48bcc6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x503454]
jne 0x48bcd0
repz ret
jmp fcn.0049ba13

Function at 0x491d50
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 + 0x503bf0]
je 0x491d6b
inc edi
cmp edi, 0x17
jb 0x491d5c
cmp edi, 0x17
jae 0x491eeb
push ebp
push 3
call fcn.0049e8c1
cmp eax, 1
pop ecx
je 0x491eb7
push 3
call fcn.0049e8c1
test eax, eax
pop ecx
jne 0x491d9f
cmp dword [0x503450], 1
je 0x491eb7
cmp ebx, 0xfc
je 0x491eea
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x509970
push ebp
call fcn.004893ca
add esp, 0xc
test eax, eax
je 0x491dd5
push esi
push esi
push esi
push esi
push esi
call fcn.00484a74
add esp, 0x14
push 0x104
mov esi, 0x509989
push esi
push 0
mov byte [0x509a8d], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x491e19
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004893ca
add esp, 0xc
test eax, eax
je 0x491e19
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00484a74
add esp, 0x14
push esi
call fcn.004838a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x491e5e
push esi
call fcn.004838a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x509c84
push 0x4dbc7c
sub ecx, eax
push ecx
push eax
call fcn.0049c7eb
add esp, 0x14
test eax, eax
je 0x491e5e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00484a74
add esp, 0x14
jmp 0x491e60
xor esi, esi
push 0x4dbc78
push ebx
push ebp
call fcn.0049c77a
add esp, 0xc
test eax, eax
je 0x491e80
push esi
push esi
push esi
push esi
push esi
call fcn.00484a74
add esp, 0x14
push dword [edi*8 + 0x503bf4]
push ebx
push ebp
call fcn.0049c77a
add esp, 0xc
test eax, eax
je 0x491ea2
push esi
push esi
push esi
push esi
push esi
call fcn.00484a74
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049e704
add esp, 0xc
jmp 0x491eea
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x491eea
cmp ebp, 0xffffffff
je 0x491eea
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x503bf4]
push dword [esi]
call fcn.004838a0
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