joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d740
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54188f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x589ed0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0
mov dword [ebx], 0x569cdc
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
lea esi, [ebx + 0x10]
mov dword [ebp - 4], 0
push 0
push esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
call fcn.00413630
mov dword [ebp - 4], 1
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], esi
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov ecx, esi
call fcn.00421990
lea eax, [ebx + 0x10]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov byte [eax + 0x48], 0
lea esi, [eax + 8]
mov byte [eax + 0x3d], 0
lea edi, [eax + 0x14]
mov dword [eax + 0x10], esi
lea edx, [eax + 0x24]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x1c]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x598cd4]
mov ecx, dword [0x598cd8]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x38], 0
mov byte [ebp - 4], 2
cmp dword [ebx + 0x4c], 0
jne 0x45d8ee
push 0x40
push 1
push dword [ebp + 8]
call fcn.004bcfba
add esp, 0xc
test eax, eax
je 0x45d8ee
push 1
push eax
mov ecx, ebx
call fcn.0045d580
mov eax, dword [ebx + 0x34]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
call fcn.0045de10
add esp, 4
mov ecx, ebx
push eax
call fcn.0045d420
test esi, esi
je 0x45d8d7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x45d8d7
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x10]
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004214f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x460850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2058
call fcn.004ba8b0
mov eax, dword [0x589ed0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x2000
lea eax, [ebp - 0x2004]
mov esi, ecx
push 0
push eax
call fcn.004d90f0
push 0xfff
push esi
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.004e4e6f
add esp, 0x1c
mov dword [ebp - 0x2058], 0x44
lea eax, [ebp - 0x2014]
xorps xmm0, xmm0
movlpd qword [ebp - 0x2054], xmm0
movlpd qword [ebp - 0x204c], xmm0
push eax
lea eax, [ebp - 0x2058]
movlpd qword [ebp - 0x2044], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2004]
movlpd qword [ebp - 0x203c], xmm0
push eax
push 0
movlpd qword [ebp - 0x2034], xmm0
movlpd qword [ebp - 0x202c], xmm0
movlpd qword [ebp - 0x2024], xmm0
movlpd qword [ebp - 0x201c], xmm0
movups xmmword [ebp - 0x2014], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x46092a
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret
push 0x1388
push dword [ebp - 0x2014]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x2014]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2010]
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret
Function at 0x46fae0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x589ed0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x214], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
push edi
push edx
mov edi, dword [eax + 4]
or edi, 0x2001f
mov dword [ebp - 0x220], eax
push edi
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x46fc3b
mov eax, dword [ebp - 0x214]
xor esi, esi
test eax, eax
je 0x46fb6c
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x218]
and edi, 0x300
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], edi
test esi, esi
jne 0x46fc3b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push ecx
lea ecx, [ebp - 0x204]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x46fc07
nop dword [eax]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0046fae0
mov esi, eax
test esi, esi
jne 0x46fc3b
lea eax, [ebp - 0x228]
mov dword [ebp - 0x208], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
call edi
test eax, eax
je 0x46fbc0
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x46fc1e
push eax
call ebx
mov dword [ebp - 0x214], 0
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x210], 0
call fcn.0046ed40
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x46fc48
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret 4
Function at 0x46fe00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54206b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x589ed0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x46feac
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x46feac
call fcn.0046eb60
mov edi, eax
jmp 0x46ffcb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x46fecf
call fcn.0046eb60
jmp 0x46ffbe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x46feed
call fcn.0046eb60
jmp 0x46ffbe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x46ff0e
mov edi, 0x8007000e
jmp 0x46ffc0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x470004
jb 0x46ff2c
cmp eax, 0xffffffff
ja 0x470004
cmp eax, 0x400
jbe 0x46ff41
push eax
lea ecx, [ebp - 0x418]
call fcn.0046ea80
jmp 0x46ff67
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x46ff67
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x46ff7e
mov edi, 0x8007000e
jmp 0x46ffc0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x46ff9e
call fcn.0046eb60
jmp 0x46ffbe
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0046fc60
mov edi, eax
test esi, esi
je 0x46ffcb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x46ffe4
lea ecx, [ebp - 0x418]
call fcn.0046ee90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00435c10
int3
Function at 0x4709f0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x589ed0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x470a41
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x470a56
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x470aa6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
je 0x470aa6
push ecx
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x470a41
push esi
test ebx, ebx
je 0x470a99
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x470a9f
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x470a60
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret 4
Function at 0x471f30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5422c5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x589ed0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0042c3d0
push 0x39c
mov dword [ebp - 4], 0
call fcn.004ba332
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x471f88
mov ecx, eax
call fcn.00408e90
jmp 0x471f8a
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 7
mov word [esi + 0xc], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], 0x7ffe795f
mov dword [esi + 0x30], 0x7ffe795f
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0xffffffff
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00472250
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x490850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546198
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x589ed0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov edi, ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
add edx, ecx
add eax, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp + 0xc], eax
cmp ecx, edx
jae 0x4908f9
add ebx, 4
sub eax, ecx
push eax
push ecx
push dword [ebx]
call fcn.005145de
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x4908ce
push 0
call fcn.0049a610
add esp, 4
cmp eax, 0xffffffff
jne 0x490911
mov eax, dword [ebp + 0xc]
sub eax, edi
push eax
push edi
push dword [ebx]
call fcn.005145de
mov esi, eax
add esp, 0xc
test esi, esi
js 0x4908a8
xor eax, eax
xor edx, edx
test edx, edx
mov dword [ebp + 0x10], 0
lea ecx, [ebp + 0x10]
cmovne ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x490915
test esi, esi
je 0x4908f6
mov eax, dword [ebp + 0xc]
add edi, esi
mov ecx, edi
cmp edi, dword [ebp - 0x10]
jb 0x490894
mov ecx, dword [ebp + 8]
sub edi, ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, eax
jmp 0x4908d2
push ebx
push 0x556838
push str.n__miniposix::read_fd__pos__max___pos_
push eax
push 0x15c
push str.c:_rime_thirdparty_srccapnprotoc_srckjio.c
lea ecx, [ebp + 8]
call fcn.0048e650
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0049a5a0
int3

Function at 0x490950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5461c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x589ed0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov ebx, dword [ebp + 8]
mov esi, ebx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
add edi, ebx
add eax, ebx
mov dword [ebp + 8], eax
cmp ebx, edi
jae 0x4909d0
sub eax, esi
or ecx, 0xffffffff
cmp eax, ecx
push 0
cmovb ecx, eax
lea eax, [ebp + 0xc]
push eax
push ecx
push esi
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4909bb
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
test ecx, ecx
jne 0x4909e8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4909d0
add esi, eax
cmp esi, edi
jae 0x4909d0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
jmp 0x490991
sub esi, ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
sub esp, 8
mov dword [ebp + 8], 0
mov eax, esp
push 0x568818
push str.ReadFile_handle__pos__kj::min_max___pos__DWORD_kj::maxValue____n__nullptr_
push ecx
push 0x1bb
push str.c:_rime_thirdparty_srccapnprotoc_srckjio.c
lea ecx, [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0049a7c0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0049a5a0
int3
Function at 0x490dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546293
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x589ed0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
je 0x490e2e
or eax, 0xffffffff
lea ecx, [ebp - 0x10]
push 0
cmp esi, 0xffffffff
push ecx
cmovb eax, esi
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x490e21
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
test ecx, ecx
jne 0x490eba
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x490e42
add edi, eax
sub esi, eax
jne 0x490df4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x18]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], str.write___returned_zero.
push eax
mov dword [ebp - 0x14], 0x16
call fcn.00475200
add esp, 8
push 1
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push eax
push str._write___returned_zero._
push str.n___0
push 0
push 0x1cd
push str.c:_rime_thirdparty_srccapnprotoc_srckjio.c
lea ecx, [ebp + 0xc]
call fcn.0049ab80
push fcn.00477ba0
push 1
push 0xc
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.004b9e0b
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 2
call fcn.0049a5a0
sub esp, 8
mov dword [ebp + 8], 0
mov eax, esp
push 0x568818
push str.WriteFile_handle__pos__kj::min_size__DWORD_kj::maxValue____n__nullptr_
push ecx
push 0x1cc
push str.c:_rime_thirdparty_srccapnprotoc_srckjio.c
lea ecx, [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0049a7c0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0049a5a0
int3
Function at 0x4a4d60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548081
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x589ed0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov byte [esi], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xf
mov byte [esi + 0x14], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov byte [esi + 0x30], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
push 0x10
mov byte [ebp - 4], 3
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
call fcn.004ba332
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x64], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4afc70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
xor eax, eax
cmp dword [ebx + 0x10], 2
setne al
mov dword [ebp - 8], eax
call fcn.004af9e0
mov ecx, ebx
mov byte [ebp - 4], al
call fcn.004af9e0
mov ecx, dword [ebx]
mov byte [ebp - 3], al
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [eax + ecx + 0xc], 0
jne 0x4afdbe
mov eax, dword [ebp - 8]
push esi
push edi
lea esi, [ebp - 4]
add esi, eax
lea edi, [ebp - 4]
xor eax, 1
mov dword [ebp - 0x10], esi
add eax, edi
mov dword [ebp - 0xc], eax
movzx edi, byte [esi]
shl edi, 8
movzx eax, byte [eax]
or edi, eax
lea eax, [edi - 0xdc00]
cmp eax, 0x3ff
ja 0x4afcf1
lea eax, [ebx + 0x14]
push 0xfffd
push eax
call fcn.004afab0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi - 0xd800]
cmp eax, 0x3ff
ja 0x4afdaf
mov ecx, ebx
call fcn.004af9e0
mov ecx, ebx
mov byte [ebp - 4], al
call fcn.004af9e0
mov ecx, dword [ebx]
mov byte [ebp - 3], al
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [eax + ecx + 0xc], 0
jne 0x4afdd7
nop dword [eax + eax]
mov eax, dword [ebp - 0xc]
movzx esi, byte [esi]
shl esi, 8
movzx eax, byte [eax]
or esi, eax
cmp esi, 0xdc00
jb 0x4afd4e
cmp esi, 0xe000
jb 0x4afd98
lea eax, [ebx + 0x14]
push 0xfffd
push eax
mov dword [ebp - 8], eax
call fcn.004afab0
lea eax, [esi - 0xd800]
add esp, 8
cmp eax, 0x7ff
ja 0x4afdc3
mov ecx, ebx
mov edi, esi
call fcn.004af9e0
mov ecx, ebx
mov byte [ebp - 4], al
call fcn.004af9e0
mov ecx, dword [ebx]
mov byte [ebp - 3], al
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [eax + ecx + 0xc], 0
jne 0x4afdef
mov esi, dword [ebp - 0x10]
jmp 0x4afd30
and edi, 0x3ff
and esi, 0x3ff
shl edi, 0xa
or edi, esi
add edi, 0x10000
lea eax, [ebx + 0x14]
push edi
push eax
call fcn.004afab0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
push edi
push ebx
call fcn.004afab0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, 0x14
push 0xfffd
push ebx
call fcn.004afab0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
push 0xfffd
push ebx
call fcn.004afab0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d6070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54da20
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x589ed0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x58a04c]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x4d60d4
push eax
call esi
test eax, eax
mov eax, dword [0x58a04c]
je 0x4d60d4
cmp eax, 0xffffffff
jne 0x4d60c0
xor ecx, ecx
jmp 0x4d60ca
push eax
call esi
mov ecx, eax
mov eax, dword [0x58a04c]
cmp byte [ecx + 0x38], 0
je 0x4d60d4
mov cl, 1
jmp 0x4d60d6
xor cl, cl
mov dword [ebp - 4], 0xffffffff
test cl, cl
je 0x4d6127
mov dword [ebp - 4], 1
cmp eax, 0xffffffff
je 0x4d611a
push eax
call esi
test eax, eax
je 0x4d611a
mov eax, dword [0x58a04c]
cmp eax, 0xffffffff
jne 0x4d6102
xor eax, eax
jmp 0x4d6105
push eax
call esi
push 0
push 0
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x4d611a
mov al, 1
jmp 0x4d611c
xor al, al
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x4d6137
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004d5910
lea ecx, [eax + 0x34]
call fcn.004d48e0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x585030
lea eax, [ebp - 0xd]
push eax
call fcn.004d8583
int3

Function at 0x4d64e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54db10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x589ed0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.004d3d40
mov esi, eax
mov dword [ebp - 4], 0
push 0x4d54f0
push 0x59531c
mov dword [ebp - 0x14], esi
call fcn.004d5250
mov eax, dword [0x58a04c]
add esp, 8
cmp eax, 0xffffffff
je 0x4d6540
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret