joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50ef00
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x53fe74
push 0x53fe6c
push str.FlsAlloc
push 0x1e
call fcn.0050ed2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x50ef34
push dword [ebp + 8]
mov ecx, esi
call dword [0x522780]
call esi
jmp 0x50ef3a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x50ef7e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x53fe84
push 0x53fe7c
push str.FlsGetValue
push 0x20
call fcn.0050ed2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x50efb5
push dword [ebp + 8]
mov ecx, esi
call dword [0x522780]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x50fdf6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050fc67
Function at 0x510735
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005106b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5108ad
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5108ad
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x51085c
jg 0x51078e
test eax, eax
je 0x510852
push 1
push 0x1000
call fcn.0050ea2f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5107b4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x510849
push 0x8000
push ebx
call fcn.00509084
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5107e0
jg 0x5107db
cmp ecx, 0x1000
jb 0x5107e0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0050c3a6
add esp, 0x10
cmp eax, 0xffffffff
je 0x510825
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5107db
jl 0x51080c
test ecx, ecx
jne 0x5107cd
push dword [ebp - 0xc]
push ebx
call fcn.00509084
push esi
call fcn.0050cf1b
add esp, 0xc
xor edi, edi
jmp 0x5108be
cmp byte [edi + 0x24], 0
je 0x51083c
cmp dword [edi + 0x20], 5
jne 0x51083c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x510847
mov edi, dword [edi + 0x18]
jmp 0x510849
xor edi, edi
push esi
call fcn.0050cf1b
pop ecx
jmp 0x5108be
test ecx, ecx
jg 0x51081e
jl 0x51085c
test eax, eax
jae 0x51081e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0050324d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x51087f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x51081e
jmp 0x5108b6
push ebx
call fcn.00510647
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x51081e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5108be
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5108bb
mov edi, dword [edi + 0x18]
jmp 0x5108be
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0050324d
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5138f3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x55f904]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x51393e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00513a92
test al, al
jne 0x513938
sub edx, 2
cmp edx, edi
jne 0x51391e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x513960
lea eax, [edi + 2]
cmp edx, eax
je 0x513960
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0051383f
add esp, 0x10
jmp 0x513a5a
push esi
lea ecx, [ebp - 0x255]
call fcn.00513a92
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5139a3
push dword [ebp - 0x25c]
jmp 0x513950
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5139e0
cmp word [ebp - 0x226], 0
je 0x513a01
cmp word [ebp - 0x226], ax
jne 0x5139e0
cmp word [ebp - 0x224], 0
je 0x513a01
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0051383f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x513a4d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5139ba
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x513a35
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x513a5a
push 0x51366f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004fbb70
add esp, 0x10
jmp 0x513a2a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004edf30
leave
ret

Function at 0x51437e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x51438f
pop esi
ret
push ebx
push edi
push esi
call fcn.00514347
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0050cf55
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5143b7
push ebx
push esi
push edi
call fcn.004f0450
add esp, 0xc
push 0
call fcn.0050cf1b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x51477b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005143cc
Function at 0x10001f30
Capabilities:
Check mutex on windows
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.10006e90
mov eax, dword [0x1002c400]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1000
push 0
lea eax, [ebp - 0x1004]
push eax
call fcn.10007d90
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.10002140
add esp, 4
push eax
lea edx, [ebp - 0x1004]
push edx
call fcn.1000a7a0
add esp, 8
lea eax, [ebp + 0x10]
mov dword [ebp - 0x100c], eax
mov ecx, dword [ebp - 0x100c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x1004]
push eax
call fcn.1000a8a0
add esp, 4
lea ecx, [ebp + eax - 0x1004]
push ecx
call fcn.10002200
add esp, 0xc
mov dword [ebp - 0x100c], 0
cmp dword [0x1004d7c4], 0
jne 0x10001fd0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x1004d7c4], eax
push 0xffffffffffffffff
mov edx, dword [0x1004d7c4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xffffffffffffffff
mov ecx, dword [0x1004d7d8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push 0
push 0
push 3
push 0
push 1
push 0x40000000
mov edx, dword [0x1004d7d8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1008], eax
cmp dword [ebp - 0x1008], 0xffffffff
jne 0x10002049
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_log_pipe_file._Error___lu__n
call fcn.10002180
add esp, 8
mov eax, dword [0x1004d7c4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
jmp 0x100020b6
push 0
lea ecx, [ebp - 0x1010]
push ecx
lea edx, [ebp - 0x1004]
push edx
call fcn.1000a8a0
add esp, 4
push eax
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000208e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_write_into_log_pipe._Error___lu_n
call fcn.10002180
add esp, 8
mov edx, dword [ebp - 0x1008]
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1004d7c4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006e80
mov esp, ebp
pop ebp
ret

Function at 0x10002180
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.10006e90
mov eax, dword [0x1002c400]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1000
push 0
lea eax, [ebp - 0x1004]
push eax
call fcn.10007d90
add esp, 0xc
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1008], ecx
mov edx, dword [ebp - 0x1008]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1004]
push ecx
call fcn.10002200
add esp, 0xc
mov dword [ebp - 0x1008], 0
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006e80
mov esp, ebp
pop ebp
ret
Function at 0x10002910
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002949
xor eax, eax
jmp 0x100029ee
mov edx, dword [ebp - 8]
push edx
call fcn.1000a950
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000298c
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000a940
add esp, 4
xor eax, eax
jmp 0x100029ee
push 1
mov edx, dword [ebp - 0xc]
add edx, 1
push edx
call fcn.1000a930
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10007ef0
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.100032b0
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000a940
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.1000a940
add esp, 4
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x10002a00
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x1002c400]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x298]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0
je 0x10002a39
jmp 0x10002ba8
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x2a0]
push ecx
push 0
push str.1500
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0
je 0x10002a6f
jmp 0x10002ba8
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x2a0]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x2a0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0xffffffff
jne 0x10002aa7
jmp 0x10002ba8
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x2a0]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x2a4]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0
je 0x10002adc
jmp 0x10002ba8
push 0x104
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.10007d90
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.GET__s__HTTP_1.1_nHost:__s_n_n
lea edx, [ebp - 0x108]
push edx
call fcn.10001cf0
add esp, 0x10
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.1000a8a0
add esp, 4
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x2a4]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0xffffffff
jne 0x10002b45
jmp 0x10002ba8
push 1
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0xffffffff
jne 0x10002b65
jmp 0x10002ba8
mov ecx, dword [ebp - 0x2a4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0xffffffff
jne 0x10002b83
jmp 0x10002ba8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0xffffffff
jne 0x10002b9a
jmp 0x10002ba8
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006e80
mov esp, ebp
pop ebp
ret
Function at 0x100031d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
push 0
push 0x80
push 3
push 0
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10003212
or ecx, 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], ecx
jmp 0x10003236
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10003300
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x1002c400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1002c324
mov eax, dword [ebp + 8]
push eax
call fcn.10008464
add esp, 8
test eax, eax
je 0x100034c7
push 0x208
push 0
lea ecx, [ebp - 0x414]
push ecx
call fcn.10007d90
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.10007d90
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x61c]
push eax
call fcn.10007d90
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x824]
push ecx
call fcn.10007d90
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.1000a480
add esp, 4
mov esi, eax
push str.Hand2Note.exe
call fcn.1000a480
add esp, 4
sub esi, eax
sub esi, 1
push esi
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.1000a750
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.1000a323
add esp, 8
push str.umpdc.dll
lea ecx, [ebp - 0x20c]
push ecx
call fcn.1000a300
add esp, 8
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x61c]
push eax
call fcn.1000a323
add esp, 8
push str.umpdc.tmp
lea ecx, [ebp - 0x61c]
push ecx
call fcn.1000a300
add esp, 8
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x824]
push ecx
call fcn.1000a323
add esp, 8
push str.integrationumpdc.dll
lea edx, [ebp - 0x824]
push edx
call fcn.1000a300
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call fcn.100031d0
add esp, 4
mov esi, eax
mov edi, edx
lea ecx, [ebp - 0x824]
push ecx
call fcn.100031d0
add esp, 4
mov dword [ebp - 0x82c], esi
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x830], edx
mov edx, dword [ebp - 0x82c]
cmp edx, dword [ebp - 0x834]
jne 0x1000349b
mov eax, dword [ebp - 0x828]
cmp eax, dword [ebp - 0x830]
je 0x100034b0
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
nop
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
nop
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006e80
mov esp, ebp
pop ebp
ret
Function at 0x100035e0
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.10003790
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100036ad
mov edx, dword [ebp - 4]
cmp edx, dword [0x1002c3e0]
jb 0x1000362a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002c3e4]
ja 0x1000362a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100035fa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10007d90
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 0x10003650
jmp 0x100036ad
cmp dword [ebp - 0x14], 0x10000
jne 0x10003693
cmp dword [ebp - 0x18], 0x10000
jb 0x10003693
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 0x10003686
mov eax, dword [ebp - 8]
jmp 0x100036af
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100036a8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10003790
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100035fa
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100036c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100037c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10003785
mov edx, dword [ebp - 4]
cmp edx, dword [0x1002c3e0]
jb 0x10003705
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002c3e4]
ja 0x10003705
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100036d5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10007d90
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 0x1000372b
jmp 0x10003785
cmp dword [ebp - 0x14], 0x10000
jne 0x1000376e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000376e
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 0x10003761
mov eax, dword [ebp - 8]
jmp 0x10003787
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10003780
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100037c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100036d5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10005440
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1004cdf4], 0
je 0x10005456
xor eax, eax
jmp 0x10005672
cmp dword [0x1004cdf0], 0
je 0x10005469
mov eax, dword [0x1004cdf0]
jmp 0x10005672
push 0x24
push 0
push 0x1004cdcc
call fcn.10007d90
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1004cdcc], eax
push 0
push 0
push 0x1001a310
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x1004cdd0], eax
cmp dword [0x1004cdd0], 0
jne 0x1000550e
mov dword [0x1004cdf4], 1
cmp dword [0x1004cdd0], 0
je 0x100054c1
mov eax, dword [0x1004cdd0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1004cdd4], 0
mov dword [0x1004cdd8], 0
mov dword [0x1004cddc], 0
mov dword [0x1004cde0], 0
mov dword [0x1004cde4], 0
mov dword [0x1004cde8], 0
mov dword [0x1004cdec], 0
xor eax, eax
jmp 0x10005672
push str.ImagehlpApiVersionEx
mov ecx, dword [0x1004cdd0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004cdd4], eax
push str.SymInitialize
mov edx, dword [0x1004cdd0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004cdd8], eax
push str.SymSetOptions
mov eax, dword [0x1004cdd0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004cddc], eax
push str.SymGetOptions
mov ecx, dword [0x1004cdd0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004cde0], eax
push str.SymLoadModule64
mov edx, dword [0x1004cdd0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004cde4], eax
push str.SymGetModuleInfo64
mov eax, dword [0x1004cdd0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004cde8], eax
push str.SymFromName
mov ecx, dword [0x1004cdd0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1004cdec], eax
push 8
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.10007d90
add esp, 0xc
mov eax, 0xc
mov word [ebp - 0xc], ax
cmp dword [0x1004cdd4], 0
je 0x100055f3
cmp dword [0x1004cdd8], 0
je 0x100055f3
cmp dword [0x1004cde4], 0
je 0x100055f3
cmp dword [0x1004cde8], 0
je 0x100055f3
cmp dword [0x1004cdec], 0
jne 0x100055f8
jmp 0x100054a2
lea ecx, [ebp - 0xc]
push ecx
call dword [0x1004cdd4]
movzx edx, word [ebp - 0xc]
cmp edx, 0xc
jge 0x10005610
jmp 0x100054a2
push 0
push 0
mov eax, dword [0x1004cdcc]
push eax
call dword [0x1004cdd8]
test eax, eax
jne 0x10005629
jmp 0x100054a2
cmp dword [0x1004cde0], 0
je 0x10005663
cmp dword [0x1004cddc], 0
je 0x10005663
call dword [0x1004cde0]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xfffffff8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x2704
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call dword [0x1004cddc]
mov dword [0x1004cdf0], 0x1004cdcc
mov eax, dword [0x1004cdf0]
mov esp, ebp
pop ebp
ret
Function at 0x10007450
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x10007485
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x10007482
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x1000748e
add edx, 0x28
cmp edx, esi
jne 0x10007470
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x1000748b

Function at 0x1000cf1e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000cf5d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000cf5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000cf5d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000cf5d
cmp dword [ecx + 0x74], 0xe
jbe 0x1000cf5d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret