joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444650
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x114]
push esi
push edi
mov edi, eax
mov ecx, dword [edi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
mov al, byte [esp + 0x10]
test al, al
jne case.default.0x4446bc
call fcn.0044d540
mov esi, dword [esp + 0x120]
push esi
lea edx, [esp + 0x18]
push str.joker_wall___d_n
push edx
call fcn.0056aefc
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, 4
ja case.default.0x4446bc
jmp dword [esi*4 + 0x444770]
mov ecx, dword [esp + 0x118]
push 1
push 0x2710
push ebp
push ecx
push edi
call fcn.00443c70
mov eax, 0x1f5
jmp 0x444752
mov edx, dword [esp + 0x118]
push 1
push 0x2710
push ebp
push edx
push edi
call fcn.00443970
mov eax, 0x1f4
jmp 0x444752
mov eax, dword [esp + 0x118]
push 1
push 0x2710
push ebp
push eax
push edi
call fcn.00444790
mov eax, 0x1f6
jmp 0x444752
mov ecx, dword [esp + 0x118]
push 1
push 0x2710
push ebp
push ecx
push edi
call fcn.00444000
mov eax, 0x1f8
jmp 0x444752
mov edx, dword [esp + 0x118]
push 1
push 0x2710
push ebp
push edx
push edi
call fcn.00444330
mov eax, 0x1f9
mov edi, dword [0x89e864]
add edi, 0x80df8
call fcn.00417f50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0xc
Function at 0x446a20
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58400b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [eax + 8]
push esi
push edi
call fcn.004d3720
mov esi, eax
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x2c]
test al, al
push edi
je 0x446a74
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x1c
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x1c]
mov ecx, ebp
shr ecx, 3
mov ebx, dword [edx + ecx*4]
xor ebx, dword [eax + ebp*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x446bd9
push 0x5c
call fcn.0056ae19
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
mov dword [esp + 0x18], 0
je 0x446ac8
mov eax, dword [esp + 0x24]
and eax, 0x8000000f
jns 0x446abf
dec eax
or eax, 0xfffffff0
inc eax
call fcn.004856d0
mov esi, eax
jmp 0x446aca
xor esi, esi
mov eax, dword [esp + 0x28]
imul eax, eax, 0x64
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x2c]
imul eax, eax, 0x64
mov dword [esi + 0x3c], eax
mov al, byte [esp + 0x38]
test al, al
je 0x446b43
mov ebp, dword [0x5fc7d0]
call fcn.004d3720
mov edi, eax
lea ebx, [edi + 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [edi + 0x2c]
test al, al
push ebx
je 0x446b22
mov edi, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0056ce40
cdq
idiv edi
jmp 0x446b45
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x1c]
mov ecx, ebp
shr ecx, 3
mov edi, dword [edx + ecx*4]
xor edi, dword [eax + ebp*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0056ce40
cdq
idiv edi
jmp 0x446b45
xor edx, edx
mov ebx, dword [0x89e864]
mov cl, byte [esp + 0x38]
mov edi, dword [esp + 0x30]
mov dword [esi + 0x44], edx
mov edx, dword [esp + 0x34]
mov eax, 0xa
push edx
add ebx, 0x58058
mov byte [esi + 0x50], cl
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x18], edi
call fcn.00403000
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
push str.normal
mov ecx, esi
call dword [eax + 4]
cmp edi, 0xc352
je 0x446bb8
cmp edi, 0xc358
je 0x446bb8
cmp edi, 0xc351
je 0x446baf
cmp edi, 0xc357
je 0x446baf
push 0
push str.ex_snd.xes
jmp 0x446bbf
push 0
push str.defense_snd.xes
jmp 0x446bbf
push 0
push str.attack_snd.xes
call fcn.0054bac0
mov ecx, dword [0x89e864]
add esp, 8
push esi
add ecx, 0x80324
call fcn.00548590
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x44b680
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58400b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [eax + 8]
push esi
push edi
call fcn.004d3720
mov esi, eax
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x2c]
test al, al
push edi
je 0x44b6d4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x1c]
mov ecx, ebp
shr ecx, 3
mov ebx, dword [edx + ecx*4]
xor ebx, dword [eax + ebp*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x44b75f
push 0x64
call fcn.0056ae19
add esp, 4
mov dword [esp + 0x20], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x18], esi
je 0x44b70f
push eax
call fcn.004b65f0
mov esi, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
mov ebx, dword [0x89e864]
push str.thor
add ebx, 0x58058
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
call fcn.00403000
mov edx, dword [esi]
push str.normal
mov ecx, esi
mov dword [esi + 0x1c], eax
call dword [edx + 4]
mov ecx, dword [0x89e864]
push esi
add ecx, 0x80324
call fcn.00548590
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x44eaf0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x200
lea eax, [esp + 0x208]
push eax
push ecx
lea edx, [esp + 8]
push edx
call fcn.0056cb27
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x200
ret

Function at 0x451060
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x80
push esi
push 0x80
lea eax, [esp + 8]
push eax
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x45108b
mov dword [edi + 4], esi
mov dword [edi], esi
pop esi
add esp, 0x80
ret
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4510e4
mov edx, dword [eax + 0xc]
cmp dword [edx], 0
je 0x4510e4
lea ecx, [edi + 5]
push ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx + esi*4]
mov dl, byte [edx]
mov byte [ecx - 1], dl
mov edx, dword [eax + 0xc]
mov edx, dword [edx + esi*4]
mov dl, byte [edx + 1]
mov byte [ecx], dl
mov edx, dword [eax + 0xc]
mov edx, dword [edx + esi*4]
mov dl, byte [edx + 2]
mov byte [ecx + 1], dl
mov edx, dword [eax + 0xc]
mov edx, dword [edx + esi*4]
mov dl, byte [edx + 3]
mov byte [ecx + 2], dl
mov edx, dword [eax + 0xc]
mov ebx, dword [edx + esi*4 + 4]
inc esi
add ecx, 4
test ebx, ebx
jne 0x4510a6
pop ebx
mov dword [edi], esi
pop esi
add esp, 0x80
ret
Function at 0x4552a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57d938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
sub esp, 0x24
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], 0xffffffff
xor ecx, ecx
mov dword [eax + 0x1c], ecx
mov edi, 0xf
mov dword [eax + 0x20], edi
mov byte [eax + 0xc], cl
mov eax, dword [ebp + 0x48]
mov ecx, dword [eax]
mov dword [esp + 0xa0], esp
push eax
push ecx
lea ebx, [esp + 0x74]
lea esi, [esp + 0x58]
call fcn.00457d90
add esp, 0x2c
xor ebx, ebx
push eax
mov dword [esp + 0x78], ebx
call fcn.00455270
push 0xffffffffffffffff
mov byte [esp + 0x78], 1
push ebx
mov edx, esi
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.004024e0
mov eax, dword [esp + 0x44]
mov esi, 0x10
cmp eax, esi
jb 0x455342
mov eax, dword [esp + 0x30]
push eax
call fcn.0056c052
add esp, 4
mov byte [esp + 0x74], 3
cmp dword [esp + 0x68], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x455366
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0056c052
add esp, 4
cmp dword [esp + 0x28], esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jae 0x455380
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.00401c20
mov edi, eax
cmp dword [esp + 0x28], esi
jb 0x45539d
mov edx, dword [esp + 0x14]
push edx
call fcn.0056c052
add esp, 4
mov ecx, dword [esp + 0x6c]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret 4
Function at 0x458060
Capabilities:
Resolve dns

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x458066
sub eax, esi
pop esi
je 0x4580ad
cmp byte [eax + edx - 1], 0x2e
je 0x4580ad
lea ecx, [eax - 1]
test ecx, ecx
jl 0x458092
mov al, byte [ecx + edx]
cmp al, 0x2e
je 0x458092
cmp al, 0x30
jl 0x45809a
cmp al, 0x39
jg 0x45809a
dec ecx
jns 0x458080
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
ret
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4580ad
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
ret
or eax, 0xffffffff
ret
Function at 0x458240
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push esi
lea esi, [ebx + 0x28254]
push edi
mov ecx, esi
call fcn.0054c230
mov eax, dword [ebx + 0x7a30]
xor ebp, ebp
push ebp
mov ecx, 0x4000
sub ecx, eax
push ecx
lea edx, [eax + ebx + 0x230]
mov eax, dword [ebx + 0x24]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, esi
mov edi, eax
call fcn.0054c240
cmp edi, ebp
jge 0x458292
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
cmp eax, 0x2733
pop esi
sete al
pop ebp
ret
mov esi, dword [ebx + 0x7a30]
movzx eax, word [ebx + 0x230]
add esi, edi
mov ecx, esi
cmp eax, ecx
mov dword [ebx + 0x7a30], esi
jle 0x4582b5
pop edi
pop esi
mov al, 1
pop ebp
ret
xor ebp, ebp
cmp dword [ebx + 0x7a30], 2
jl 0x4582ad
mov ecx, dword [ebx + 0x27a3c]
add ecx, eax
cmp ecx, 0x20000
jle 0x4582ef
mov ecx, dword [ebx + 0x27a38]
cmp eax, dword [ebx + ecx*4 + 0x27a40]
jl 0x4582e9
cmp dword [ebx + 0x27a34], ecx
jne 0x4583b5
mov dword [ebx + 0x27a3c], ebp
mov edx, dword [ebx + 0x27a34]
inc edx
and edx, 0x800000ff
jns 0x458306
dec edx
or edx, 0xffffff00
inc edx
cmp edx, dword [ebx + 0x27a38]
je 0x4583de
mov edi, dword [ebx + 0x27a3c]
lea ecx, [eax - 2]
mov ebp, ecx
shr ecx, 2
lea edi, [edi + ebx + 0x7a34]
lea esi, [ebx + 0x232]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x27a34]
mov esi, dword [ebx + 0x27a3c]
mov dword [ebx + ecx*4 + 0x27a40], esi
mov esi, dword [ebx + 0x27a34]
lea ecx, [eax - 2]
mov dword [ebx + esi*4 + 0x27e40], ecx
mov esi, dword [ebx + 0x27a3c]
mov dword [ebx + 0x27a34], edx
lea edx, [eax - 2]
add esi, edx
mov dword [ebx + 0x27a3c], esi
mov ecx, 0x4000
sub ecx, eax
mov ebp, ecx
shr ecx, 2
lea edx, [ebx + 0x230]
lea esi, [eax + ebx + 0x230]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x7a30]
sub esi, eax
mov dword [ebx + 0x7a30], esi
movzx eax, word [edx]
mov ecx, esi
cmp eax, ecx
jle 0x4582b3
pop edi
pop esi
mov al, 1
pop ebp
ret
cmp dword [ebx + 0x22c], 1
je 0x4583d2
mov ecx, dword [ebx + 0x20]
cmp ecx, ebp
je 0x4583d2
mov eax, dword [ebx + 0x1c]
push 0xffffffffffffffff
push eax
push 0x65
call fcn.0054ba20
pop edi
pop esi
mov dword [ebx + 0x22c], ebp
xor al, al
pop ebp
ret
cmp dword [ebx + 0x22c], 1
je 0x4583fb
mov ecx, dword [ebx + 0x20]
cmp ecx, ebp
je 0x4583fb
mov edx, dword [ebx + 0x1c]
push 0xfffffffffffffffe
push edx
push 0x65
call fcn.0054ba20
pop edi
pop esi
mov dword [ebx + 0x22c], ebp
xor al, al
pop ebp
ret
Function at 0x458640
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
je 0x45869b
xor eax, eax
mov ax, word [esi + 0x228]
mov word [esp], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x14]
mov word [esp + 2], ax
call fcn.00458060
mov edx, dword [esi + 0x24]
push 0x10
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x45869b
mov byte [esi + 0x22a], 1
mov al, byte [esi + 0x22a]
add esp, 0x10
ret 4

Function at 0x458750
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x400c
call fcn.0056e450
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x28254]
mov ecx, esi
mov dword [esp + 0xc], esi
call fcn.0054c230
mov al, byte [edi + 0x22a]
test al, al
jne 0x458794
mov ecx, esi
call fcn.0054c240
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0x10]
test ebx, ebx
mov esi, dword [ebp + 0xc]
jle 0x458833
mov eax, dword [edi + 0x24]
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4587be
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x4587a2
jmp 0x458833
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x45880e
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x4010], ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
add ebx, 0x28240
call fcn.00458920
mov ecx, dword [esp + 0xc]
call fcn.0054c240
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x22c], 1
je 0x458833
mov eax, dword [edi + 0x20]
test eax, eax
je 0x458833
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi + 0x1c]
push eax
push ecx
mov ecx, dword [edi + 0x20]
push 0x65
call fcn.0054ba20
mov ecx, dword [esp + 0xc]
call fcn.0054c240
mov eax, dword [ebp + 0x10]
xor edx, edx
test ebx, ebx
setl dl
pop edi
pop esi
dec edx
and edx, ebx
sub eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x459320
Capabilities:
Create udp socket

Disassembly:
lea eax, [esi + 8]
push eax
mov dword [esi], vtable.Xenesis2::Foundation::Socket::xSocket.0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov cl, byte [0x92e528]
mov eax, 1
test al, cl
mov byte [esi + 0x20], 0
mov dword [esi], vtable.Xenesis2::Foundation::Socket::xUDPSocket.0
jne 0x45936b
mov edx, dword [0x92e528]
or edx, eax
push 0x589b50
mov dword [0x92e528], edx
call fcn.0056b241
add esp, 4
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
mov eax, esi
ret
Function at 0x4593a8
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
mov ax, word [esp + 0x18]
push esi
mov esi, ecx
mov edx, dword [esi + 4]
push 0x10
lea ecx, [esp + 8]
push ecx
push edx
mov word [esp + 0x10], 2
mov word [esp + 0x12], ax
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, 1
pop esi
add esp, 0x10
ret 8
Function at 0x4c1fc0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57da80
push eax
mov eax, dword [0x5fc204]
mov dword fs:[0], esp
sub esp, 0x24
cmp eax, 0xffffffff
jne 0x4c20cd
mov eax, dword [0x89c7f4]
push ebp
push edi
mov ecx, 0x89c7f4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x38], 0
call fcn.00414400
mov byte [esp + 0x38], 1
mov edx, dword [eax]
push str.Gunbound.erl
push edx
push 0x59d814
lea edi, [esp + 0x18]
call fcn.00417d20
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c204f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 8]
push ebp
call fcn.0056cc76
add esp, 4
push 0
push 0x8000080
push 4
push 0
push 1
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x5fc204], eax
je 0x4c20a9
push esi
mov ecx, 5
mov esi, str._r_n_r_n_t_tSTARTING_LOG_r_n_r_n
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x16
movsw word es:[edi], word [esi]
lea edx, [esp + 0x24]
push edx
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
lea eax, [ebp - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop ebp
jg 0x4c20cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x4c20e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x5fc204]
sub esp, 0x404
cmp eax, 0xffffffff
je 0x4c2139
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x40c]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x400
push edx
call fcn.0056d570
add esp, 0x10
test eax, eax
jge 0x4c2120
cmp eax, 0xffffffff
jne 0x4c2139
mov eax, 0x400
push 0
lea ecx, [esp + 4]
push ecx
push eax
mov eax, dword [0x5fc204]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x404
ret
Function at 0x4cbea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x583feb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [edi + 4]
test eax, eax
push esi
mov esi, 0x7530
je 0x4cbeda
mov ecx, eax
mov ecx, dword [ecx + 8]
mov edx, dword [ecx + 0x20]
test edx, edx
mov eax, dword [eax]
jne 0x4cbed6
cmp dword [ecx + 0x24], esi
je 0x4cbf08
test eax, eax
jne 0x4cbec3
push ebx
push 0x90
call fcn.0056ae19
mov ebx, eax
add esp, 4
mov dword [esp + 8], ebx
test ebx, ebx
mov dword [esp + 0x14], 0
je 0x4cbf1c
push ebx
call fcn.004ca7b0
mov dword [ebx], vtable.gDialogReportMain.0
jmp 0x4cbf1e
mov byte [ecx + 0x1d], 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
xor ebx, ebx
push 0xc
push 0xc
push 0x6b
mov dword [esp + 0x20], 0xffffffff
push 0x90
push 0x5c
push 0
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x44], 0x320
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x28], 0x11d
mov dword [ebx + 0x2c], 0x95
mov dword [ebx + 0x30], 0xe7
mov dword [ebx + 0x34], 0x10a
call fcn.004cb660
mov esi, eax
push esi
call fcn.004cc9e0
push edi
call fcn.004cd230
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0x3c
push 0xc
push 0xa7
push 0xcc
push 0x20
push 1
call fcn.004cb660
push eax
call fcn.004cc9e0
push 0x14
push 0x16
push 4
push 0xc1
push 0x322
push 0
call fcn.004cb5e0
push eax
call fcn.004cc9e0
push 0x17
push 0x3d
push 0xed
push 0x96
push 0x321
push 1
call fcn.004cb5e0
push eax
call fcn.004cc9e0
push ebx
mov eax, edi
call fcn.004cd1c0
mov ecx, dword [esp + 0xc]
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d3390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57dccf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esi], vtable.Xenesis2::Foundation::Process::xThread_0__10_.0
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
mov dword [esp + 0x24], ebx
mov dword [esi], vtable.Xenesis2::Foundation::Memory::xEncryptMemory.0
lea ebp, [esi + 0x10]
call fcn.00454e80
mov dword [ebp + 4], eax
mov cl, 1
mov byte [eax + 0x11], cl
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], ebx
push 0x200000
mov byte [esp + 0x28], cl
call fcn.0056ae14
mov dword [esi + 0x1c], eax
push 0x40000
mov byte [esp + 0x2c], 2
call fcn.0056ae14
mov dword [esi + 0x20], eax
push 0x40000
mov byte [esp + 0x30], 3
call fcn.0056ae14
add esp, 0xc
mov dword [esi + 0x24], eax
lea eax, [esi + 0x30]
push eax
mov dword [esi + 0x28], ebx
mov byte [esi + 0x2c], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0056ce33
mov edi, dword [esi + 0x1c]
xor eax, eax
mov ecx, 0x80000
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0x20]
mov ecx, 0x10000
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0x24]
mov ecx, 0x10000
add esp, 4
rep stosd dword es:[edi], eax
xor edi, edi
jmp 0x4d3480
push esi
mov eax, edi
call fcn.004d3610
inc edi
cmp edi, 0x10000
jb 0x4d3480
xor edi, edi
mov dword [esp + 0x10], edi
lea eax, [esp + 0x14]
push eax
lea ebx, [esp + 0x14]
mov eax, ebp
call fcn.00417d40
inc edi
cmp edi, 0x80000
mov dword [esp + 0x10], edi
jb 0x4d3497
push esi
push 0
push 0x4d37c0
mov byte [esi + 0xc], 1
call fcn.0056ca09
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4d3840
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x57da58
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
push edi
call fcn.004550e0
mov dword [esi + 8], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x18], ecx
lea edi, [esi + 0x34]
mov dword [esi], vtable.Xenesis2::Utility::Interface::xInterface.0
mov byte [esi + 0x28], bl
mov dword [esi + 0x30], ebx
mov eax, ebp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4d38c0
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.00402880
mov dl, byte [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov al, 1
mov byte [esi + 0x50], al
mov byte [esi + 0x51], al
mov byte [esi + 0x53], al
mov al, byte [esp + 0x34]
mov byte [esi + 0x52], bl
mov byte [esi + 0x55], bl
mov byte [esi + 0x56], al
mov byte [esi + 0x57], bl
mov byte [esi + 0x58], bl
mov byte [esi + 0x59], bl
mov byte [esi + 0x54], dl
pop edi
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x18

Function at 0x4d6ca4
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
cmp dword [eax], 0x1000001
je 0x4d6cbb
push eax
mov ecx, esi
call fcn.004d39f0
pop esi
ret 4
mov eax, dword [eax + 4]
sub eax, 0x2a8
je 0x4d6cd4
dec eax
jne 0x4d6cfd
push esi
call fcn.004d6e10
mov al, 1
pop esi
ret 4
push 1
push 0
push 0
push 0xcf
push 0x8a3708
call fcn.0044ee40
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
call fcn.004d6e10
mov al, 1
pop esi
ret 4