joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4968b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x537700]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x10], eax
mov dword [eax + 0x14dc], 0
cmp dword [edi + 4], 0
jne 0x49696b
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
push eax
lea ecx, [ebp - 0x20]
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CDuiRect::constructor_struct_tagRECT_const__
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call sym.ClientofCSP.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
movups xmm0, xmmword [ebp - 0x20]
push 0
sub esp, 0x10
mov ecx, esp
push 0
push 0x40000000
push 0
movups xmmword [ecx], xmm0
push eax
mov ecx, edi
call sym.ClientofCSP.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, dword [edi + 0x10]
mov esi, eax
call sym.ClientofCSP.exe_public:_int___thiscall_DuiLib::CLabelUI::GetFont_void_const
push eax
mov ecx, esi
call sym.ClientofCSP.exe_public:_struct_DuiLib::tagTFontInfo____thiscall_DuiLib::CPaintManagerUI::GetFontInfo_int_
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, eax
mov dword [ebp - 4], 0
call sym.ClientofCSP.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0xa5], al
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp byte [ebp - 0xa5], 0
je 0x4969b3
mov eax, dword [edi + 0x10]
add eax, 0x14cc
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x14cc
push eax
push 0
push 0x1002
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b847a
mov esp, ebp
pop ebp
ret 4
Function at 0x49be60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x537700]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], edi
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x24], ecx
mov ecx, dword [ebp + 8]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], esi
mov dword [edi + 0x364], ecx
mov dword [edi + 0x368], 0
mov dword [edi + 0x36c], eax
test ecx, ecx
jne 0x49bede
call sym.ClientofCSP.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov esi, dword [esp + 0xc]
test esi, esi
je 0x49bede
call sym.ClientofCSP.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call sym.ClientofCSP.exe_public:_static_class_DuiLib::ObserverImpl____cdecl_DuiLib::CMenuWnd::GetGlobalContextMenuObserver_void_
mov edx, edi
lea ecx, [edi + 0x10]
neg edx
mov esi, dword [eax]
sbb edx, edx
and edx, ecx
mov ecx, eax
push edx
call dword [esi]
lea ecx, [esp + 0x2c]
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CDuiRect::constructor_void_
mov ecx, dword [edi + 0x364]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
test ecx, ecx
jne 0x49bf16
mov eax, dword [esp + 0x10]
jmp 0x49bf1d
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov ecx, eax
call sym.ClientofCSP.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
movups xmm0, xmmword [esp + 0x18]
push 0
sub esp, 0x10
mov ecx, esp
push 0x88
push closesocket
push 0
movups xmmword [ecx], xmm0
push eax
mov ecx, edi
call sym.ClientofCSP.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
mov esi, dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push esi
call edi
test eax, eax
je 0x49bf63
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x49bf57
mov eax, dword [esp + 0x14]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.004b847a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4a2de0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a2e5f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [esp + 0x14]
mov dword [ebx], eax
test eax, eax
je 0x4a2e5f
push esi
push eax
mov dword [esp + 0x10], 0
call fcn.004b8967
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
push 0
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
cmp eax, dword [ebx]
je 0x4a2e58
push esi
call fcn.004a2dd0
add esp, 4
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ecx
ret
pop edi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x4a2e70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec170
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x537700]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
call sym.ClientofCSP.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0
call sym.ClientofCSP.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea ecx, [ebp - 0x94]
call sym.ClientofCSP.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a2f44
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
je 0x4a2f44
push eax
mov dword [ebp - 0x98], 0
call fcn.004b8967
add esp, 4
mov esi, eax
lea eax, [ebp - 0x98]
push 0
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebx]
je 0x4a2f46
push esi
call fcn.004a2dd0
add esp, 4
xor esi, esi
lea ecx, [ebp - 0x94]
call sym.ClientofCSP.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b847a
mov esp, ebp
pop ebp
ret
Function at 0x4a2f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
push dword [esp + 0x14]
push dword [esp + 0x14]
call sym.ClientofCSP.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4a2fa7
push edi
call sym.ClientofCSP.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push edi
test ebx, ebx
jne 0x4a2fad
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebp
xor eax, eax
pop ebx
ret
call sym.ClientofCSP.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, dword [esp + 0x18]
mov dword [ebp], eax
test eax, eax
je 0x4a2fa7
push esi
push eax
call fcn.004b8967
add esp, 4
mov esi, eax
push dword [ebp]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.004ba120
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x4a59e0
Capabilities:
Create directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x537700]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push esi
mov esi, dword [esp + 0x420]
test ebx, ebx
je 0x4a5adb
movzx eax, word [ebx]
test ax, ax
je 0x4a5adb
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
nop
cmp dx, 0x2f
je 0x4a5a2c
cmp dx, 0x5c
jne 0x4a5a2e
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4a5a20
cmp edi, ebx
je 0x4a5a76
sub edi, ebx
lea eax, [esp + 0xc]
sar edi, 1
push edi
push ebx
push eax
call fcn.004ccec2
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4a5af2
xor eax, eax
mov word [esp + edi + 0xc], ax
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004a59e0
add esp, 8
lea ecx, [esp + 0x214]
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4a5a80
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4a5a92
lea edi, [esp + 0x214]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5ab0
mov ecx, ebx
lea eax, [esp + 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [esp + 0x418]
pop esi
pop ebx
xor ecx, esp
call fcn.004b847a
add esp, 0x414
ret
call fcn.004b85cd
int3
Function at 0x4a6180
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
cmp dword [ebp], 0
jne 0x4a6314
cmp dword [ebp + 4], 0xffffffff
jne 0x4a6314
push edi
lea edi, [ebp + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4a61b0
mov eax, dword [0x4f5610]
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi], eax
push esi
cmp ebx, 1
jne 0x4a61ea
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, ebx
je 0x4a6205
pop esi
pop ebx
pop edi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
cmp ebx, 2
je 0x4a6201
cmp ebx, 3
je 0x4a6201
pop esi
pop ebx
pop edi
mov eax, 0x10000
pop ebp
pop ecx
ret 0xc
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
mov byte [esp + 0x20], 0
cmp ebx, 1
je 0x4a624b
cmp ebx, 2
jne 0x4a6293
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4a6284
pop esi
pop ebx
pop edi
mov eax, 0x200
pop ebp
pop ecx
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov edi, eax
call esi
push 2
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
mov edi, dword [esp + 0x2c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4a6280
pop esi
pop ebx
pop edi
mov eax, 0x100
pop ebp
pop ecx
ret 0xc
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
sete byte [esp + 0x20]
push 0x1c
call fcn.004b80fd
add esp, 4
mov esi, eax
cmp ebx, 1
je 0x4a62c8
cmp ebx, 2
je 0x4a62c8
mov eax, dword [esp + 0x1c]
mov word [esi], 0x100
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0xc], 0
jmp 0x4a62fb
mov cl, byte [esp + 0x20]
mov byte [esi], 1
mov byte [esi + 1], cl
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test cl, cl
je 0x4a62fb
push 1
push 0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.004a9800
add esp, 4
mov dword [ebp], eax
mov eax, dword [0x53bc28]
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret 0xc
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc
Function at 0x4a9170
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ebp
imul ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp byte [edi], 0
je 0x4a91b0
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push dword [esp + 0x1c]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a91a4
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
xor edx, edx
pop edi
div ebp
pop ebp
pop ebx
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x10]
push esi
mov esi, dword [edi + 0x14]
lea eax, [edx + ebx]
sub esi, edx
cmp eax, dword [edi + 0x14]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [esp + 0x1c]
call fcn.004ba120
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebp
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x4a9280
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4a928b
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
not eax
cmp esi, 8
jb 0x4a934c
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fd470]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fd470]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fd470]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fd470]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fd470]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fd470]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fd470]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fd470]
sub edi, 1
jne 0x4a92a5
pop edi
test esi, esi
je 0x4a936a
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fd470]
sub esi, 1
jne 0x4a9350
not eax
pop esi
ret
Function at 0x4b1cf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x4b1d1d
cmp eax, edi
jge 0x4b1d0d
push esi
call fcn.004ad730
add esp, 4
mov eax, dword [esi + 0xc]
mov ecx, edi
shr eax, cl
sub dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, eax
test eax, eax
jle 0x4b1d4d
mov eax, dword [esi + 0xc]
push ebx
mov bl, al
nop dword [eax + eax]
mov byte [esp + ecx + 0x10], bl
sub edx, 8
shr eax, 8
inc ecx
mov dword [esi + 0xc], eax
mov bl, al
test edx, edx
jg 0x4b1d30
mov dword [esi + 8], edx
pop ebx
cmp ecx, 4
jge 0x4b1d69
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4b1d5a
xor dl, dl
jmp 0x4b1d5f
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [esp + ecx + 0xc], dl
inc ecx
cmp ecx, 4
jl 0x4b1d50
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0xf]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [esp + 0xe]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4b1da1
mov dword [0x53bc30], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4b1db9
pop edi
mov dword [0x53bc30], 0x4fdd30
xor eax, eax
pop esi
ret
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4b1dd3
push edi
push ecx
push esi
call fcn.004b4f80
add esp, 0xc
test eax, eax
je 0x4b1d9c
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004ba120
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
ret
Function at 0x4b6200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec5ad
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x537700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x53753c]
cmp eax, 0xffffffff
jne 0x4b6234
xor ebx, ebx
jmp 0x4b623d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x4b633b
nop
cmp dword [ebx + 0x18], 0
jne 0x4b6265
cmp dword [ebx + 0xc], 0
je 0x4b62f4
mov esi, dword [ebx + 0xc]
jmp 0x4b6270
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x4b62b2
nop dword [eax]
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4b629b
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x4b6270
cmp dword [ebx + 0x18], 0
je 0x4b6256
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4b62d5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4b62d5
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea ecx, [ebx + 0x14]
call fcn.00446de0
push 0x20
push eax
call fcn.004b812d
add esp, 8
cmp dword [ebx + 0x18], 0
jne 0x4b62b8
jmp 0x4b6250
push 0x4b56a0
push 0x53bd84
call fcn.004b54b0
mov eax, dword [0x53753c]
add esp, 8
cmp eax, 0xffffffff
je 0x4b6319
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x4b633b
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b6350
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x4b63b0
push 0
push 0
call fcn.004c3dcf
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4b6379
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x4b6397
cmp eax, 0xffffffff
je 0x4b6397
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x4b941d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b945c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b945c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b945c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4b945c
cmp dword [ecx + 0x74], 0xe
jbe 0x4b945c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4cac70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004b8b20
mov eax, dword [0x537700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004d3af3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4cacb2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4cae0e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004b8a00
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x53c890]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004d7392
mov ecx, dword [esi*4 + 0x53c890]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4cae07
cmp eax, dword [ecx + edi + 0x24]
jne 0x4cae07
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cae07
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d7392
add esp, 0x14
test edx, edx
jl 0x4cae07
jg 0x4cad7d
test eax, eax
jb 0x4cae07
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4cae07
jl 0x4cad97
cmp dword [ebp - 0x1008], eax
ja 0x4cae07
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4cadb5
test ebx, ebx
je 0x4cadee
cmp ecx, edi
jae 0x4cadee
mov al, byte [ecx]
cmp al, 0xd
jne 0x4cadcf
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4caddb
cmp byte [ecx + 1], 0xa
jne 0x4caddb
inc ecx
jmp 0x4caddb
movzx eax, al
movsx eax, byte [eax + 0x537b80]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4cadb5
cmp edx, ebx
jne 0x4cadb5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4cae0c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b847a
leave
ret

Function at 0x4d4938
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x502e78
push 0x502e70
push str.FlsAlloc
push 0x1f
call fcn.004d4763
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d496c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ed640]
call esi
jmp 0x4d4972
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4