joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d53
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00402ec2
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00539000
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40179e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 1
mov eax, 0x421842
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 8]
call fcn.004017e0
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4017d2
push ebx
call fcn.0040265b
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4017da
mov esp, ebp
pop ebp
ret 8
Function at 0x402770
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00419da4
test eax, eax
jne 0x40280a
push 0x303d1b8
push 0x3055e20
call fcn.00402a90
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00402830
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test cl, 6
jne 0x4027de
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x4027de
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x4027ff
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x4027f7
or al, 4
push 0
push eax
call fcn.0041398f
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00402d60
mov dword [0x304144c], esp
mov dword [0x3041450], ebp
call fcn.00402615
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403110
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00404190
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0x41c404
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x4031d2
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0xc], eax
jle 0x4031cb
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ebx, [edi + 4]
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0x3a8
call ebp
mov esi, eax
test esi, esi
jle 0x4031b6
lea edx, [esi + 1]
push edx
call fcn.00402f40
mov edi, eax
add esp, 4
test edi, edi
je 0x4031a8
mov eax, dword [ebx]
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0x3a8
call ebp
mov byte [eax + edi], 0
push edi
lea ecx, [esp + 0x20]
call fcn.00404420
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x403162
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x4031e5
push eax
call fcn.004045e0
add esp, 4
mov edi, dword [esp + 0x28]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.00402f40
mov dword [eax], 1
mov edx, dword [esp + 0x2c]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov dword [ebx], eax
mov dword [esp + 0x18], 0x41c400
call fcn.00404390
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x4032b0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00415fca
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x40331a
push esi
lea edi, [eax + 0x400]
call fcn.00415ff3
push edi
call fcn.00415fca
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4032ea
push esi
xor edi, edi
call dword [0x303d744]
add esp, 4
test eax, eax
je 0x403336
push eax
push esi
call fcn.00404640
add esp, 8
mov edi, eax
push esi
call fcn.00415ff3
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4038c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x403952
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x403944
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40393c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x403905
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x403960
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4039a1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4039a1.2
jmp dword [eax*4 + 0x403a2c]
mov word [esp + 0x48], di
jmp 0x4039da
mov word [esp + 0x48], 2
jmp 0x4039da
mov word [esp + 0x48], 3
jmp 0x4039da
mov word [esp + 0x48], 4
jmp 0x4039da
mov word [esp + 0x48], 7
jmp 0x4039da
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x403a24
cmp dword [esp + 0x70], edi
je 0x403a10
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x405250
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
test esi, esi
push edi
jne 0x40526c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x405288
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x2c], ecx
je 0x4052c1
mov dx, word [eax]
mov ax, word [eax + 4]
mov word [esp + 0x40], dx
mov word [esp + 0x42], ax
mov ecx, dword [esp + 0x40]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x4052c1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x14]
cmp eax, 1
je 0x4052d2
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
and edx, 0xffff
and eax, 0xffff
push edx
push eax
call fcn.00405160
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
add esp, 8
push eax
push edi
call ebx
test eax, eax
jne 0x405305
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push esi
call fcn.00405180
mov esi, eax
add esp, 4
test esi, esi
je 0x405323
push esi
call fcn.00408d0a
push esi
call fcn.00408a1e
add esp, 8
cmp dword [esp + 0x34], 1
jne 0x40533e
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x40533e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x2c]
push ecx
push edi
call ebx
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret
Function at 0x405590
Capabilities:
Create tcp socket

Disassembly:
sub esp, 0x10
push esi
push edi
call fcn.004053b0
mov edi, eax
call fcn.00406140
push 6
push 1
push 2
mov dword [edi + 8], eax
call sub.WS2_32.dll_socket
mov ecx, dword [esp + 0x1c]
mov esi, eax
xor eax, eax
mov dword [edi], esi
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
call sub.WS2_32.dll_htons
lea edx, [esp + 8]
push 0x10
push edx
push esi
mov word [esp + 0x16], ax
call sub.WS2_32.dll_bind
test eax, eax
jge 0x4055fe
push esi
call sub.WS2_32.dll_closesocket
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
push 1
push esi
call sub.WS2_32.dll_listen
test eax, eax
jge 0x405618
push esi
call sub.WS2_32.dll_closesocket
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret

Function at 0x405650
Capabilities:
Get socket status

Disassembly:
sub esp, 0x120
mov ecx, dword [esp + 0x128]
push esi
push edi
mov edi, dword [esp + 0x12c]
test ecx, ecx
mov esi, dword [edi]
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], esi
jne 0x405682
push ecx
push ecx
lea eax, [esp + 0x2c]
push ecx
push eax
jmp 0x4056d6
cmp ecx, 0xffffffff
jne 0x405699
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
jmp 0x4056c8
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 8], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 0xc], edx
lea eax, [esp + 8]
lea ecx, [esp + 0x24]
push eax
push 0
push 0
push ecx
inc esi
push esi
call sub.WS2_32.dll_select
test eax, eax
jge 0x4056ed
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x120
ret
mov eax, dword [edi]
lea edx, [esp + 0x24]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x405742
push 8
mov dword [esp + 0x14], 0x10
call fcn.004085b5
mov esi, eax
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esi + 4], 0
mov eax, dword [edi]
push ecx
push edx
push eax
call sub.WS2_32.dll_accept
push esi
push edi
mov dword [esi], eax
call fcn.004053f0
add esp, 8
mov eax, esi
pop edi
pop esi
add esp, 0x120
ret
pop edi
xor eax, eax
pop esi
add esp, 0x120
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40df34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409c84
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40df57
test byte [esp + 8], 2
je 0x40df57
call fcn.00409cf7
mov dword [eax], 0xd
call fcn.00409d00
mov dword [eax], 5
jmp 0x40df30
xor eax, eax
ret
Function at 0x41a472
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41a4a0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a4be
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041a3d8
jmp 0x41a4be
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a4be
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041a3d8
test edi, edi
mov eax, edi
jne 0x41a4a8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403cf8
nop
nop
sub eax, 0x403c9e
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x10003c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
push 0x1c
lea eax, [ebp - 0x830]
mov dword [ebp - 0x814], edx
push eax
mov edi, ecx
push edi
push dword [0x100296a0]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x10003d11
mov dword [ebp - 0x814], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003cc5
push 0
push 0
lea ecx, [ebp - 0x814]
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x814]
push str.Failed_to_query_virtual_memory.
push str._s__s
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.10003420
add esp, 0x14
lea eax, [ebp - 0x80c]
push 0
push str._V_PATCH__Error_while_writing_memory_
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10004349
mov esp, ebp
pop ebp
ret
xor bl, bl
test byte [ebp - 0x81c], 0x40
jne 0x10003d81
lea eax, [ebp - 0x810]
mov bl, 1
push eax
push 0x40
push dword [ebp - 0x824]
push dword [ebp - 0x830]
push dword [0x100296a0]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x10003d81
mov dword [ebp - 0x814], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003d71
push 0
push 0
lea ecx, [ebp - 0x814]
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x814]
push str.Failed_to_change_memory_protection.
jmp 0x10003cd0
push dword [ebp + 8]
push dword [ebp - 0x814]
push edi
call fcn.10006f80
add esp, 0xc
test bl, bl
je 0x10003e54
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x810]
push dword [ebp - 0x824]
push dword [ebp - 0x830]
push dword [0x100296a0]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x10003e02
mov dword [ebp - 0x814], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003df2
push 0
push 0
lea ecx, [ebp - 0x814]
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x814]
push str.Failed_to_restore_memory_protection.
jmp 0x10003cd0
push dword [ebp + 8]
push edi
push dword [0x100296a0]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x10003e54
mov dword [ebp - 0x814], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003e44
push 0
push 0
lea ecx, [ebp - 0x814]
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x814]
push str.Failed_to_flush_instruction_cache.
jmp 0x10003cd0
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.10004349
mov esp, ebp
pop ebp
ret
Function at 0x10003e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1c
lea eax, [ebp - 0x82c]
mov esi, ecx
push eax
push esi
push dword [0x100296a0]
mov edi, edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x10003f1f
mov dword [ebp - 0x810], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003ed2
push 0
push 0
lea ecx, [ebp - 0x810]
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x810]
push str.Failed_to_query_virtual_memory.
push str._s__s
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.10003420
add esp, 0x14
lea eax, [ebp - 0x808]
push 0
push str._V_PATCH__Error_while_writing_NOP_to_memory_
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004349
mov esp, ebp
pop ebp
ret
xor bl, bl
test byte [ebp - 0x818], 0x40
jne 0x10003f8f
lea eax, [ebp - 0x80c]
mov bl, 1
push eax
push 0x40
push dword [ebp - 0x820]
push dword [ebp - 0x82c]
push dword [0x100296a0]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x10003f8f
mov dword [ebp - 0x810], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003f7f
push 0
push 0
lea ecx, [ebp - 0x810]
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x810]
push str.Failed_to_change_memory_protection.
jmp 0x10003edd
push edi
push 0x90
push esi
call fcn.10005980
add esp, 0xc
test bl, bl
je 0x1000405d
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x80c]
push dword [ebp - 0x820]
push dword [ebp - 0x82c]
push dword [0x100296a0]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x1000400d
mov dword [ebp - 0x810], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003ffd
push 0
push 0
lea ecx, [ebp - 0x810]
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x810]
push str.Failed_to_restore_memory_protection.
jmp 0x10003edd
push edi
push esi
push dword [0x100296a0]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000405d
mov dword [ebp - 0x810], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000404d
push 0
push 0
lea ecx, [ebp - 0x810]
push ecx
push 0x409
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x810]
push str.Failed_to_flush_instruction_cache.
jmp 0x10003edd
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004349
mov esp, ebp
pop ebp
ret
Function at 0x10014a2e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10014acb
push ebx
push esi
call fcn.100149f7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10014940
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10014a78
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014aca
push edi
push eax
call fcn.10012443
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10014a98
call fcn.1001059a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014ac9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10014940
add esp, 0x20
test eax, eax
jne 0x10014ab7
push edi
call fcn.1001059a
jmp 0x10014abf
push ebx
call fcn.1001059a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10014d36
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020ed0
push 0x10020ec8
push str.FlsAlloc
push 0x1e
call fcn.10014c54
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014d6a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e14c]
call esi
jmp 0x10014d70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10014db4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020ee0
push 0x10020ed8
push str.FlsGetValue
push 0x20
call fcn.10014c54
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014deb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10016d82
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10016bf3