joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c2b8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47c2e9
mov ecx, dword [0x4ebce4]
mov dl, 1
mov eax, dword [0x47a984]
call fcn.0040de18
call fcn.00404aa8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x47c316
mov ecx, dword [0x4eb9f4]
mov dl, 1
mov eax, dword [0x47a984]
call fcn.0040de18
call fcn.00404aa8
xor eax, eax
push ebp
push 0x47c397
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00404430
cmp byte [ebp + 8], 0
je 0x47c371
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047c220
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0047c078
jmp 0x47c38d
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047bbd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47c3b4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x47c3c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47c3f1
mov ecx, dword [0x4eba84]
mov dl, 1
mov eax, dword [0x47a984]
call fcn.0040de18
call fcn.00404aa8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x47c41e
mov ecx, dword [0x4eb9f4]
mov dl, 1
mov eax, dword [0x47a984]
call fcn.0040de18
call fcn.00404aa8
xor eax, eax
push ebp
push 0x47c49a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00404430
cmp byte [ebp + 8], 0
je 0x47c476
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047c220
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0047c100
jmp 0x47c490
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047bbd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47c4b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47c698
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047be98
xor eax, eax
push ebp
push 0x47c80b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x47c7f5
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x47c6e4
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47c6ee
call fcn.00404b54
jmp 0x47c812
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041bdc4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x47c7ea
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x47c79d
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x47c78a
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404430
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0047c650
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x47c820]
cmp dl, byte [eax + 0x28]
je 0x47c7f1
call fcn.0040dd30
jmp 0x47c7f1
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041bde4
jmp 0x47c7f1
cmp edi, ebx
jge 0x47c7b9
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041bde4
jmp 0x47c6ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041bdc4
cmp edx, dword [esp + 4]
jne 0x47c7d9
cmp eax, dword [esp]
pop edx
pop eax
jne 0x47c6ee
push ebp
call fcn.0047c650
pop ecx
jmp 0x47c7f1
push ebp
call fcn.0047c650
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c812
mov eax, dword [ebp - 4]
call fcn.0047bea4
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47c824
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47c946
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047be98
xor eax, eax
push ebp
push 0x47c929
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47c874
call fcn.00404b54
jmp 0x47c930
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x47c913
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47c913
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404430
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x47c913
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040d518
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x47c960
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4ebb9c]
mov dl, 1
mov eax, dword [0x47a984]
call fcn.0040de54
call fcn.00404aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c930
mov eax, dword [ebp - 4]
call fcn.0047bea4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c94d
lea eax, [ebp - 0x28]
call fcn.00405134
ret
Function at 0x47c9ac
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47caf6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047be98
xor eax, eax
push ebp
push 0x47cad9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x47ca11
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47ca11
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x47cac3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47ca24
call fcn.00404b54
jmp 0x47cae0
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x47cac3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47cac3
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404430
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x47cac3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040d518
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x47cb10
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4ebb9c]
mov dl, 1
mov eax, dword [0x47a984]
call fcn.0040de54
call fcn.00404aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cae0
mov eax, dword [ebp - 4]
call fcn.0047bea4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cafd
lea eax, [ebp - 0x28]
call fcn.00405134
ret
Function at 0x486d9c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4f0f28
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x486dbe
shr eax, 1
xor eax, 0xedb88320
jmp 0x486dc0
shr eax, 1
dec edx
jne 0x486dac
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x486da5
mov byte [0x4f1328], 1
pop esi
pop ebx
ret

Function at 0x486ddc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4f1328], 0
jne 0x486df3
call fcn.00486d9c
mov eax, edi
dec eax
test eax, eax
jl 0x486e1b
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4f0f28]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x486dfd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x489758
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x4897f2.0
jmp dword [ecx*4 + 0x48978b]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4897bd
sub dl, 8
je 0x4897cc
jmp case.0x4897f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x489404
jmp case.0x4897f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48945c
jmp case.0x4897f2.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x4897f2.0
movzx ecx, byte [ecx + 0x4897f9]
jmp dword [ecx*4 + 0x48980a]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x489508
jmp case.0x4897f2.0
cmp dl, 3
jne 0x489837
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48955c
jmp case.0x4897f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x489518
jmp case.0x4897f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4895a0
jmp case.0x4897f2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x489862
sub dl, 8
je 0x48986e
jmp case.0x4897f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4895cc
jmp case.0x4897f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x489638
jmp case.0x4897f2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x48988d
sub dl, 8
je 0x489899
jmp case.0x4897f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4896f4
jmp case.0x4897f2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48971c
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
mov esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0x10], esi
mov esi, ecx
test esi, esi
jb 0x48993d
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00488910
test eax, eax
je 0x48993d
mov eax, ebx
call fcn.00489948
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x4898d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x489948
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x489979
dec al
je 0x4899b4
dec al
je 0x4899f9
dec al
je 0x489a62
jmp 0x489aec
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x489aec
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x489989
jmp 0x489aec
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x489aec
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4899c4
jmp 0x489aec
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x489aec
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x489a28
xor ebp, ebp
jmp 0x489a38
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x489a41
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x489a09
jmp 0x489aec
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x489aec
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x489abb
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00486e24
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x489a76
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x491b14
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x491b29
or edx, 0x200
test eax, 0x20000000
je 0x491b5c
test eax, 0x40000000
je 0x491b48
test eax, 0x80000000
je 0x491b43
or edx, 0x40
jmp 0x491b83
or edx, 0x20
jmp 0x491b83
test eax, 0x80000000
je 0x491b57
or edx, 0x80
jmp 0x491b83
or edx, 0x10
jmp 0x491b83
test eax, 0x40000000
je 0x491b74
test eax, 0x80000000
je 0x491b6f
or edx, 4
jmp 0x491b83
or edx, 2
jmp 0x491b83
test eax, 0x80000000
je 0x491b80
or edx, 8
jmp 0x491b83
or edx, 1
mov eax, edx
pop ebp
ret 4

Function at 0x495510
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x49553e
mov eax, ebx
call fcn.00495fc4
cmp dword [ebx + 0x40], 0
je 0x495537
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4955af
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4955a1
cmp dword [ebx + 8], 0
je 0x495560
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x495572
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4955a1
cmp dword [ebx + 8], 0
je 0x495553
cmp eax, 3
je 0x495585
dec eax
jne 0x495553
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x495553
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x495553
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4955cd
cmp dword [ebx + 0x14], 0xcc
je 0x4955cd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004955d8
pop ebx
ret
Function at 0x4a6e98
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
mov esi, eax
xor eax, eax
mov dword [edx], esi
mov ecx, dword [edx]
cmp word [ecx], 0x5a4d
jne 0x4a6ee6
mov edx, dword [edx]
mov edx, dword [edx + 0x3c]
add edx, esi
mov dword [ebx], edx
mov edx, dword [ebx]
cmp dword [edx], 0x4550
jne 0x4a6ee6
mov edx, dword [ebx]
mov edi, dword [edx + 0xa0]
test edi, edi
je 0x4a6ee6
mov edx, dword [ebx]
test byte [edx + 0x16], 1
jne 0x4a6ee6
mov edx, edi
mov eax, esi
call fcn.004a6e90
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4ac164
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x4ac179
or edx, 0x200
test eax, 0x20000000
je 0x4ac1ac
test eax, 0x40000000
je 0x4ac198
test eax, 0x80000000
je 0x4ac193
or edx, 0x40
jmp 0x4ac1d3
or edx, 0x20
jmp 0x4ac1d3
test eax, 0x80000000
je 0x4ac1a7
or edx, 0x80
jmp 0x4ac1d3
or edx, 0x10
jmp 0x4ac1d3
test eax, 0x40000000
je 0x4ac1c4
test eax, 0x80000000
je 0x4ac1bf
or edx, 4
jmp 0x4ac1d3
or edx, 2
jmp 0x4ac1d3
test eax, 0x80000000
je 0x4ac1d0
or edx, 8
jmp 0x4ac1d3
or edx, 1
mov eax, edx
pop ebp
ret 4
Function at 0x4ac2cc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor ecx, ecx
push ebp
push 0x4ac4e7
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, dword [esi]
lea eax, [ebp - 0x48]
mov ecx, 0x40
call fcn.0040837c
cmp word [ebp - 0x48], 0x5a4d
je 0x4ac326
mov eax, 0x4f2934
mov edx, 0x4ac51c
call fcn.00405188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ac507
mov edx, dword [esi]
add edx, dword [ebp - 0xc]
lea eax, [ebp - 0x140]
mov ecx, 0xf8
call fcn.0040837c
cmp dword [ebp - 0x140], 0x4550
je 0x4ac363
mov eax, 0x4f2934
mov edx, 0x4ac554
call fcn.00405188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ac507
push 4
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0x10c]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x4ac39a
push 4
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x4ac3ba
mov eax, 0x4f2934
mov edx, 0x4ac590
call fcn.00405188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ac507
push 0x11
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 0
push 4
push 0x1000
mov eax, dword [ebp - 0xf0]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc_1
push 4
push 0x1000
mov eax, dword [ebp - 0xec]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0xec]
mov edx, dword [esi]
mov eax, edi
call fcn.0040837c
mov eax, edi
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov edi, ebx
mov dword [eax + 0x34], edi
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x140]
push eax
mov eax, dword [esi]
push eax
call fcn.004abd80
mov eax, edi
sub eax, dword [ebp - 0x10c]
test eax, eax
je 0x4ac45d
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004abe28
mov eax, dword [ebp - 8]
push eax
call fcn.004abee0
test al, al
jne 0x4ac47e
mov eax, 0x4f2934
mov edx, 0x4ac5c0
call fcn.00405400
call fcn.0040dd30
mov eax, dword [ebp - 8]
push eax
call fcn.004ac1dc
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4ac4dd
mov edx, eax
add edx, edi
mov esi, edx
test edx, edx
jne 0x4ac4b1
mov eax, 0x4f2934
mov edx, 0x4ac5f8
call fcn.00405188
call fcn.0040dd30
push 0
push 1
push edi
call esi
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4ac4d6
mov eax, 0x4f2934
mov edx, 0x4ac62c
call fcn.00405188
call fcn.0040dd30
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ac501
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc