joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4618f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x461920
mov byte [edi + esi], 2
jmp 0x461957
test al, 4
je 0x46192a
mov byte [edi + esi], 0xd
jmp 0x461957
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x461943
mov byte [edi + esi], 2
jmp 0x461957
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x461953
mov byte [edi + esi], 0x19
jmp 0x461957
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x461907
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x4619cb
cmp dl, 0xd
je 0x4619cb
xor edx, edx
jmp 0x4619d0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x4619bb
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x4619f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.004602b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x461a11
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00463040
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x461a36
push esi
call fcn.00460340
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004815da
push ebx
push edi
mov ebp, eax
call fcn.004630b0
push 0x461a70
push ebp
push esi
call fcn.004643e0
push esi
call fcn.00460340
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x462d70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x597e40
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x597d68]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x462deb
push 0x4c
push 1
call fcn.00477271
mov esi, eax
add esp, 8
test esi, esi
jne 0x462db3
push 0x597e40
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x597d68]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x58d24c]
inc eax
lea edx, [esi + 0xc]
mov dword [0x58d24c], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.00466840
add esp, 8
mov byte [esi + 0x3c], 1
push 0x597e40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x463270
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.00477eb8
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004815da
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x46336a
call fcn.00477eb8
cmp dword [eax], 0
je 0x4632b7
call fcn.00477eb8
mov ebp, dword [eax]
jmp 0x4632ba
or ebp, 0xffffffff
call fcn.00462e00
test esi, esi
mov dword [eax], ebp
jne 0x4632cf
call fcn.00477eb8
cmp dword [eax], 4
je 0x46331f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x463302
cmp esi, 0xffffffff
je 0x463344
test al, 6
je 0x463302
call fcn.00462e00
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00466870
add esp, 4
push eax
push 0x24
push 9
call fcn.00463650
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x463362
test al, 6
je 0x463310
test ah, 2
je 0x463362
test esi, esi
jbe 0x46336e
test ah, 2
je 0x46336e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.00477eb8
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004815da
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x46336a
jmp 0x4632a4
call fcn.00462e00
mov eax, dword [eax]
push eax
push ebx
call fcn.00466870
add esp, 4
push eax
push 0x24
push 2
call fcn.00463650
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x46337b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x463384
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4790b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00477e45
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4790d7
test byte [esp + 8], 2
je 0x4790d7
call fcn.00477eb8
mov dword [eax], 0xd
call fcn.00477ec1
mov dword [eax], 5
jmp 0x4790b0
xor eax, eax
ret
Function at 0x48b487
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48b4bf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048953e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00489516
jmp 0x48b4cb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48cb7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48cbbe
call fcn.00492674
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48cbbe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48cbb5
xor eax, eax
jmp 0x48cbc6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048cbcc
pop edi
pop esi
pop ebx
ret 4

Function at 0x492ba4
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 0x492bd2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492bf0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492b0a
jmp 0x492bf0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492bf0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492b0a
test edi, edi
mov eax, edi
jne 0x492bda
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4037d8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5c2008], 0x8088405
inc edx
mov dword [ebx + 0x5c2008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x42c578
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42c57e
ret

Function at 0x43a870
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43aa21
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00405684
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x43aa38
call fcn.004052e0
mov eax, ebx
call fcn.00429e28
mov edi, eax
dec edi
test edi, edi
jl 0x43a928
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00429dfc
mov edx, dword [0x460020]
call fcn.004042c4
test al, al
je 0x43a924
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00429dfc
lea edx, [ebp - 0x14]
call fcn.004702bc
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00405684
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405354
inc esi
dec edi
jne 0x43a8d6
mov al, byte [0x43aa3c]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x43aa48
mov eax, dword [ebp - 0xc]
call fcn.004101c8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00405050
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004702bc
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x43aa38
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.004702bc
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x43aa38
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x43aa38
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x43aa54
call fcn.0040b800
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43aa28
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404fdc
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404fdc
lea eax, [ebp - 0x14]
call fcn.00404fb8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404fdc
ret
Function at 0x4b6698
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, edx
mov esi, 0x5c56c4
test edi, edi
je 0x4b67c3
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, edi
mov ecx, 3
cdq
idiv ecx
lea ecx, [eax + eax*2]
mov edx, dword [esp]
add edx, ecx
jmp 0x4b672f
mov eax, dword [esp]
movzx eax, byte [eax]
shl eax, 8
mov ebx, dword [esp]
movzx ebx, byte [ebx + 1]
or eax, ebx
shl eax, 8
mov ebx, dword [esp]
movzx ebx, byte [ebx + 2]
or eax, ebx
add dword [esp], 3
mov ebx, eax
and ebx, 0x3f
mov bl, byte [esi + ebx]
mov ebp, dword [esp + 4]
mov byte [ebp + 3], bl
shr eax, 6
mov ebx, eax
and ebx, 0x3f
mov bl, byte [esi + ebx]
mov ebp, dword [esp + 4]
mov byte [ebp + 2], bl
shr eax, 6
mov ebx, eax
and ebx, 0x3f
mov bl, byte [esi + ebx]
mov ebp, dword [esp + 4]
mov byte [ebp + 1], bl
shr eax, 6
mov al, byte [esi + eax]
mov ebx, dword [esp + 4]
mov byte [ebx], al
add dword [esp + 4], 4
mov eax, dword [esp]
cmp eax, edx
jb 0x4b66c9
sub edi, ecx
dec edi
je 0x4b6743
dec edi
je 0x4b6779
jmp 0x4b67c3
mov eax, dword [esp]
movzx eax, byte [eax]
shl eax, 4
mov edx, eax
and edx, 0x3f
mov dl, byte [esi + edx]
mov ecx, dword [esp + 4]
mov byte [ecx + 1], dl
shr eax, 6
mov al, byte [esi + eax]
mov edx, dword [esp + 4]
mov byte [edx], al
mov eax, dword [esp + 4]
mov byte [eax + 2], 0x3d
mov eax, dword [esp + 4]
mov byte [eax + 3], 0x3d
jmp 0x4b67c3
mov eax, dword [esp]
movzx eax, byte [eax]
shl eax, 8
mov edx, dword [esp]
movzx edx, byte [edx + 1]
or eax, edx
shl eax, 2
mov edx, eax
and edx, 0x3f
mov dl, byte [esi + edx]
mov ecx, dword [esp + 4]
mov byte [ecx + 2], dl
shr eax, 6
mov edx, eax
and edx, 0x3f
mov dl, byte [esi + edx]
mov ecx, dword [esp + 4]
mov byte [ecx + 1], dl
shr eax, 6
mov al, byte [esi + eax]
mov edx, dword [esp + 4]
mov byte [edx], al
mov eax, dword [esp + 4]
mov byte [eax + 3], 0x3d
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b68fc
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp], edx
mov esi, eax
mov eax, esi
call fcn.00405294
add eax, 2
mov ecx, 3
cdq
idiv ecx
mov edx, eax
shl edx, 2
mov eax, dword [esp]
call fcn.00405620
mov eax, esi
call fcn.00405294
add eax, 2
mov ecx, 3
cdq
idiv ecx
mov edi, eax
test edi, edi
jle 0x4b6a46
mov ebx, 1
mov eax, esi
call fcn.00405294
lea edx, [ebx + ebx*2]
cmp eax, edx
jge 0x4b697b
mov eax, esi
call fcn.00405294
mov ecx, eax
mov eax, ebx
dec eax
lea eax, [eax + eax*2]
sub ecx, eax
lea edx, [esp + 4]
mov eax, ebx
dec eax
lea eax, [eax + eax*2]
lea eax, [esi + eax]
call fcn.00402e50
jmp 0x4b6992
lea edx, [esp + 4]
mov eax, ebx
dec eax
lea eax, [eax + eax*2]
lea eax, [esi + eax]
mov ecx, 3
call fcn.00402e50
mov al, byte [esp + 4]
mov edx, eax
and dl, 0xfc
and edx, 0xff
shr edx, 2
mov ecx, dword [0x5c5704]
mov dl, byte [ecx + edx]
mov byte [esp + 7], dl
and al, 3
mov ebp, eax
and ebp, 0xff
shl ebp, 4
mov dl, byte [esp + 5]
mov eax, edx
and al, 0xf0
and eax, 0xff
shr eax, 4
or ebp, eax
mov eax, dword [0x5c5704]
mov al, byte [eax + ebp]
mov byte [esp + 8], al
and dl, 0xf
mov ebp, edx
and ebp, 0xff
shl ebp, 2
mov al, byte [esp + 6]
mov edx, eax
and dl, 0xc0
and edx, 0xff
shr edx, 6
or ebp, edx
mov edx, dword [0x5c5704]
mov dl, byte [edx + ebp]
mov byte [esp + 9], dl
and al, 0x3f
and eax, 0xff
mov edx, dword [0x5c5704]
mov al, byte [edx + eax]
mov byte [esp + 0xa], al
mov eax, dword [esp]
call fcn.004054ec
mov edx, ebx
dec edx
shl edx, 2
lea edx, [eax + edx]
lea eax, [esp + 7]
mov ecx, 4
call fcn.00402e50
inc ebx
dec edi
jne 0x4b6948
mov eax, esi
call fcn.00405294
mov ecx, 3
cdq
idiv ecx
dec edx
jne 0x4b6a8c
mov eax, dword [esp]
mov eax, dword [eax]
call fcn.00405294
mov ebx, eax
mov eax, dword [esp]
call fcn.004054ec
mov byte [eax + ebx - 2], 0x3d
mov eax, dword [esp]
mov eax, dword [eax]
call fcn.00405294
mov ebx, eax
mov eax, dword [esp]
call fcn.004054ec
mov byte [eax + ebx - 1], 0x3d
jmp 0x4b6ab9
mov eax, esi
call fcn.00405294
mov ecx, 3
cdq
idiv ecx
cmp edx, 2
jne 0x4b6ab9
mov eax, dword [esp]
mov eax, dword [eax]
call fcn.00405294
mov ebx, eax
mov eax, dword [esp]
call fcn.004054ec
mov byte [eax + ebx - 1], 0x3d
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b9988
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b99b6
mov eax, ebx
call fcn.004ba43c
cmp dword [ebx + 0x40], 0
je 0x4b99af
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b9a27
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b9a19
cmp dword [ebx + 8], 0
je 0x4b99d8
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 0x4b99ea
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b9a19
cmp dword [ebx + 8], 0
je 0x4b99cb
cmp eax, 3
je 0x4b99fd
dec eax
jne 0x4b99cb
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 0x4b99cb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b99cb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b9a45
cmp dword [ebx + 0x14], 0xcc
je 0x4b9a45
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.004b9a50
pop ebx
ret
Function at 0x4f7534
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x4f7547
add esp, 0xfffffff0
call fcn.004044a4
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov dl, 1
mov eax, dword [0x41d9a0]
call fcn.004040fc
mov dword [ebx + 4], eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x4f7ed0]
call fcn.004fb91c
mov edi, eax
mov dword [ebx + 8], edi
mov eax, edi
mov edx, dword [esi + 0xc4]
call fcn.004fcd4c
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x58]
mov edx, 0x4f75e4
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov ecx, esi
mov dl, 1
mov eax, dword [0x4f7ed0]
call fcn.004fb91c
mov edi, eax
mov dword [ebx + 0xc], edi
mov eax, edi
mov edx, dword [esi + 0xc4]
call fcn.004fcd4c
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x58]
mov edx, 0x4f7730
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4f75d4
call fcn.004044fc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4fb91c
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
test dl, dl
je 0x4fb939
add esp, 0xfffffff0
call fcn.004044a4
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4fba88
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, esi
xor edx, edx
mov eax, ebx
call fcn.00429804
lea eax, [ebp - 0x18]
call fcn.004ffc94
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x70]
call fcn.00407024
mov byte [ebx + 0x30], 0
mov eax, dword [ebx + 0x70]
mov edx, dword [eax]
call dword [edx + 0x18]
mov byte [ebx + 0x30], 1
mov byte [ebx + 0x6d], 0
mov byte [ebx + 0x3a], 1
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4f3dd8]
call fcn.004f6998
mov edi, eax
mov dword [ebx + 0x34], edi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], 0x4fbcd8
mov dword [edi + 0x34], ebx
mov dword [edi + 0x30], 0x4fcd98
mov byte [ebx + 0x38], 0
mov byte [ebx + 0x39], 0
mov byte [ebx + 0x3c], 0
xor eax, eax
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x41d9a0]
call fcn.004040fc
mov edi, eax
mov dword [ebx + 0x58], edi
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x28], 0x4fcd74
mov dl, 1
mov eax, dword [0x41d9a0]
call fcn.004040fc
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x48], eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4f7e58]
call fcn.004fb104
mov dword [ebx + 0x64], eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4f7e58]
call fcn.004fb104
mov dword [ebx + 0x68], eax
mov byte [ebx + 0x6c], 0
mov byte [ebx + 0x5c], 1
lea eax, [ebp - 0x11]
push eax
call fcn.00409b4c
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x11]
call fcn.00409b6c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x44]
call fcn.0040500c
mov eax, esi
mov edx, dword [0x4f3764]
call fcn.004042c4
test al, al
je 0x4fba50
mov edx, esi
mov eax, ebx
call fcn.004fc83c
jmp 0x4fba6a
mov eax, esi
mov edx, dword [0x4f3bdc]
call fcn.004042c4
test al, al
je 0x4fba6a
mov edx, esi
mov eax, ebx
call fcn.004fcd4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fba8f
lea eax, [ebp - 0x1c]
call fcn.00404fb8
lea eax, [ebp - 0x18]
call fcn.0040700c
ret
Function at 0x509f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov dl, 1
mov eax, dword [0x42c2e8]
call fcn.004329fc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x50a0d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x54]
cmp dword [eax + 8], 0
jle 0x50a0b2
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00433f68
mov eax, dword [ebp - 8]
call fcn.00432fcc
mov eax, dword [eax + 0x14]
mov edx, esi
call fcn.0042da84
cmp byte [ebp + 8], 0
je 0x509f9a
xor edx, edx
mov eax, ebx
call fcn.00508f10
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
xor edx, edx
mov eax, ebx
call fcn.00508f10
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
mov eax, ebx
call fcn.00508e40
imul esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x509fd6
xor edx, edx
mov eax, ebx
call fcn.00508f10
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
mov eax, ebx
call fcn.00508e40
imul esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
xor edx, edx
mov eax, ebx
call fcn.00508f10
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041e86c
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
call fcn.00432fcc
pop edx
call fcn.0042e0e8
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.00508e40
dec eax
test eax, eax
jl 0x50a08a
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00508de4
push 0
lea eax, [ebp - 0x20]
push eax
mov edx, esi
mov eax, ebx
call fcn.00508f3c
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x20]
imul esi
xor edx, edx
mov dl, byte [ebp + 8]
imul edx
push eax
mov edx, esi
mov eax, ebx
call fcn.00508f3c
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
imul esi
mov dl, byte [ebp + 8]
xor dl, 1
and edx, 0x7f
imul edx
xor ecx, ecx
pop edx
call fcn.0041e844
mov eax, dword [ebp - 8]
call fcn.00432fcc
mov edx, eax
lea ecx, [ebp - 0x20]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
inc esi
dec dword [ebp - 0x10]
jne 0x50a020
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00508de4
cmp byte [ebp + 0xc], 0
je 0x50a0b2
movzx eax, word [ebx + 0x58]
mov edx, 0x10
call fcn.0043517c
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.005085d4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a0da
mov eax, dword [ebp - 8]
call fcn.0040412c
ret