joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100289c0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x2d], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ebx
je 0x10028aae
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10028a05
cmp dword [esi + 0x40], ebx
jae 0x10028a05
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x10028a1d
lea eax, [ebx + ebx]
push eax
call fcn.1002f4c2
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push dword [esi + 0x3c]
call sub.MSVCR110.dll_memcpy
xor edx, edx
add esp, 0xc
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x10028aab
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
movsx eax, bl
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x1003a610]
xor eax, ecx
mov dword [esi + 0x30], eax
movzx eax, al
add eax, dword [esi + 0x34]
mov edi, edx
imul eax, eax, 0x8088405
and edi, 0xfffd
or edi, 2
inc eax
mov dword [esi + 0x34], eax
mov ecx, edi
xor ecx, 1
shr eax, 0x18
imul ecx, edi
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x1003a610]
shr ecx, 8
mov dword [esi + 0x38], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x3c]
xor cl, bl
mov ebx, dword [ebp - 8]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 0xc], edx
cmp edx, ebx
jb 0x10028a33
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10028aee
mov edx, dword [esi + 0x24]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x10028ac9
mov dword [esi + 0x14], 0x30000
jmp 0x10028b21
push ebx
add ecx, edx
push edi
push ecx
call sub.MSVCR110.dll_memcpy
add esp, 0xc
add dword [esi + 0x24], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x10028b1a
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1002f746
mov esp, ebp
pop ebp
ret 8
Function at 0x10028e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10048034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x10028ed9
mov ecx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp ecx, esi
jae 0x10028f28
sub esi, ecx
cmp esi, dword [ebp + 0xc]
lea eax, [ecx + edx]
cmova esi, dword [ebp + 0xc]
push esi
push eax
push ebx
call sub.MSVCR110.dll_memcpy
mov ecx, dword [edi + 0x78]
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
mov edx, ebx
call fcn.10028410
add esp, 0x10
mov dword [edi + 0x78], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x10028f21
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10028f28
mov esi, dword [ebp - 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
mov edx, ebx
call fcn.10028410
add esp, 4
mov dword [edi + 0x78], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f746
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1002f746
mov esp, ebp
pop ebp
ret 8
Function at 0x1002c140
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003486b
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x10048034]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
mov eax, dword [0x10048034]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002c29c
push 0x1003f818
lea eax, [esp + 0x14]
push esi
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCR110.dll__wfopen_s]
mov esi, dword [esp + 0x1c]
add esp, 0xc
test esi, esi
je 0x1002c29c
push 0x103
lea eax, [esp + 0x49]
push 0
push eax
mov byte [esp + 0x50], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push esi
push 0x104
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fread]
push dword [esp + 0x20]
mov esi, eax
call dword [sym.imp.MSVCR110.dll_fclose]
add esp, 0x14
test esi, esi
je 0x1002c29c
lea ecx, [esp + 0x44]
call fcn.1002e270
mov esi, eax
test esi, esi
je 0x1002c29c
push esi
lea ecx, [esp + 0x30]
call fcn.100015c0
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x160], 0
call fcn.1002e570
lea ecx, [esp + 0x2c]
call fcn.10001620
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.1002bff0
test al, al
je 0x1002c293
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
mov edx, 0x208
mov ecx, edi
call fcn.10013420
lea ecx, [esp + 0x14]
call fcn.100016f0
mov al, 1
jmp 0x1002c2b1
lea ecx, [esp + 0x14]
call fcn.100016f0
push ecx
push str.0.0.0
push ecx
mov edx, 0x104
mov ecx, edi
call fcn.100133d0
xor al, al
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.1002f746
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1002c840
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1002c871
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.100311f0
mov dword [esp + 0xc], eax
test esi, esi
jne 0x1002c879
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x100406b8
lea ecx, [esp + 8]
call fcn.1002c6e0
int3
Function at 0x1002cb20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034ae0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10048034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10001740
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x1002cbab
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1002dbd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034b38
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10048034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10001740
mov dword [edi + 0x2c], vtable.boost::exception.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1002e340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
test eax, eax
je 0x1002e419
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1002e419
push edi
push 0x100
call fcn.1002f4c2
mov edx, dword [ebp + 0xc]
mov edi, eax
push edi
call fcn.1002e420
add esp, 8
test eax, eax
jne 0x1002e385
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push ebx
xor ebx, ebx
xor ecx, ecx
test eax, eax
jle 0x1002e3fd
sub dword [ebp - 4], esi
mov dword [ebp - 8], eax
inc ebx
and ebx, 0x800000ff
jns 0x1002e3a8
dec ebx
or ebx, 0xffffff00
inc ebx
mov dl, byte [ebx + edi]
movzx eax, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x1002e3c0
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ecx + edi]
mov byte [ebx + edi], al
mov dword [ebp - 0x10], ecx
mov byte [ecx + edi], dl
movzx ecx, byte [ebx + edi]
movzx eax, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x1002e3e6
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ecx + edi]
mov ecx, dword [ebp - 4]
inc esi
xor al, byte [ecx + esi - 1]
dec dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov byte [esi - 1], al
jne 0x1002e397
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
push edi
mov dword [eax], edx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002e420
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov ecx, edx
xor eax, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x1002e494
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x1002e435
push ebx
push edi
mov dword [ebp - 4], 0
xor edi, edi
jmp 0x1002e450
mov eax, edi
cdq
idiv ecx
mov bl, byte [edi + esi]
movzx ecx, bl
movzx eax, byte [edx + str._______UDPARC4KEYFORHARDKORE1.0.0PACKET1234567890Talkwithfriends_family_orteammatesoverafastandclearconnectionAbilitytousetextchatforanyonewithoutamicrophoneNativeclientandserversupportforall3majorplatformsAutomaticmicrophonevolumenormalizationAd]
add eax, dword [ebp - 4]
add ecx, eax
and ecx, 0x800000ff
jns 0x1002e477
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov dword [ebp - 4], ecx
mov byte [ecx + esi], bl
mov ecx, dword [ebp - 8]
cmp edi, 0x100
jl 0x1002e450
pop edi
or eax, 0xffffffff
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002e920
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
xorps xmm0, xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.1002e980
mov ecx, esi
call fcn.1002ea30
movq xmm0, qword [esi + 0x58]
mov eax, dword [ebp + 0x10]
movq qword [eax], xmm0
movq xmm0, qword [esi + 0x60]
movq qword [eax + 8], xmm0
pop esi
pop ebp
ret 0xc
Function at 0x100316e0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x10031750
push 0xffffffffffffffff
push 0x10032078
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10048034]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x1004a754]
test eax, eax
jne 0x10031782
xor ebx, ebx
jmp 0x1003178b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or ecx, 0xffffffff
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x100317cf
jmp 0x100317b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebx + 0x14], 0
mov edi, dword [ebx + 0x10]
jne 0x10031809
test edi, edi
jne 0x10031810
push edi
call fcn.100318b0
add esp, 4
or ecx, 0xffffffff
mov dword [esp + 0x20], 0xffffffff
test ebx, ebx
je 0x100317f5
lea eax, [ebx + 4]
lock xadd dword [eax], ecx
dec ecx
jne 0x100317f5
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax]
push ebx
push 0
call esi
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test edi, edi
je 0x10031848
lea ecx, [ecx]
mov eax, dword [edi + 4]
mov dword [ebx + 0x10], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x10031839
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebp
push edi
push 0
call esi
push eax
call ebp
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x10031810
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x100317b0
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x14], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10031868
mov eax, dword [ecx]
push dword [esi + 0xc]
call dword [eax + 4]
mov edi, dword [esi + 8]
test edi, edi
je 0x10031895
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10031895
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x10031895
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov esi, dword [ebx + 0x14]
test esi, esi
jne 0x10031853
jmp 0x100317b0
Function at 0x10031750
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x10031750
push 0xffffffffffffffff
push 0x10032078
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10048034]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x1004a754]
test eax, eax
jne 0x10031782
xor ebx, ebx
jmp 0x1003178b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
or ecx, 0xffffffff
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x100317cf
jmp 0x100317b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebx + 0x14], 0
mov edi, dword [ebx + 0x10]
jne 0x10031809
test edi, edi
jne 0x10031810
push edi
call fcn.100318b0
add esp, 4
or ecx, 0xffffffff
mov dword [esp + 0x20], 0xffffffff
test ebx, ebx
je 0x100317f5
lea eax, [ebx + 4]
lock xadd dword [eax], ecx
dec ecx
jne 0x100317f5
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax]
push ebx
push 0
call esi
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test edi, edi
je 0x10031848
lea ecx, [ecx]
mov eax, dword [edi + 4]
mov dword [ebx + 0x10], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x10031839
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebp
push edi
push 0
call esi
push eax
call ebp
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x10031810
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x100317b0
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x14], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10031868
mov eax, dword [ecx]
push dword [esi + 0xc]
call dword [eax + 4]
mov edi, dword [esi + 8]
test edi, edi
je 0x10031895
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10031895
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x10031895
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov esi, dword [ebx + 0x14]
test esi, esi
jne 0x10031853
jmp 0x100317b0
Function at 0x100318b0
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100320a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10048034]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x10031640
push 0x1004a74c
call fcn.100312e0
mov eax, dword [0x1004a754]
add esp, 8
test eax, eax
je 0x10031909
push dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_void_]
mov dword [esp + 0x10], 0
mov dword [esp + 4], vtable.boost::thread_resource_error.0
lea eax, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.1002ca80
int3

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409b38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x409b47
pop dword [ebp - 0x24]
mov eax, 0xf1c61987
add eax, 0xe7a81c0
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xf8dc86fb
add dword [ebp - 0x34], 0x5575be50
mov dword [ebp - 0x30], 0x438bab5b
sub dword [ebp - 0x30], 0x11585f16
mov dword [ebp - 0x2c], 0x6b24541d
add dword [ebp - 0x2c], 0xe127f011
mov dword [ebp - 0x28], 0xd3f64242
sub dword [ebp - 0x28], 0xd3f64242
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x7b4c2163
sub dword [ebp - 0x34], 0x6d9b80d
mov dword [ebp - 0x30], 0xa4f0d3d1
add dword [ebp - 0x30], 0x9c7b8da4
mov dword [ebp - 0x2c], 0x684a06fc
add dword [ebp - 0x2c], 0xfb256570
mov dword [ebp - 0x28], 0xc0e3cbb4
sub dword [ebp - 0x28], 0xc0e3cbb4
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3a62a
push 0
call eax
mov ecx, 0x297a4662
add ecx, 0xd68604fd
xor esi, esi
add esi, eax
mov edi, 0x236a9381
add edi, 0xdcd71c7f
add edi, dword [ebp - 0x24]
mov edx, 0x7d73d7f4
add edx, 0x1e31f7a0
sub dword [ebp - 0x18], 0xeb2b72c2
mov ebx, dword [edi]
sub dword [ebp - 8], 0x5272b1b0
add ebx, edx
xor dword [ebp - 0x10], ecx
mov dword [esi], ebx
mov dword [ebp - 0x20], 0x3922dd69
add esi, 0x1e47ca6b
sub esi, 0x1e47ca67
add edi, 0x3b78c221
sub edi, 0x3b78c21d
loop 0x409c61
add eax, 0x7bc9d143
add eax, 0x84374f0c
mov ebx, eax
add eax, 0x183c1e61
add eax, 0xe7c3e1a4
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x1006b800]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0xb2b8eac0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
sub eax, 0x8d5381fa
je 0x100010db
jmp 0x1000103c
mov eax, dword [ebp - 0x28]
sub eax, 0xb2b8eac0
je 0x1000108d
jmp 0x1000104f
mov eax, dword [ebp - 0x28]
sub eax, 0xf7a179d
je 0x10001198
jmp 0x10001062
mov eax, dword [ebp - 0x28]
sub eax, 0x1cddea68
je 0x1000114c
jmp 0x10001075
mov eax, dword [ebp - 0x28]
sub eax, 0x636786a5
je 0x10001158
jmp 0x10001088
jmp 0x1000119f
mov eax, dword [0x1006cb50]
mov ecx, dword [0x1006cb4c]
mov edx, eax
sub edx, 0x12172f7f
sub edx, 1
add edx, 0x12172f7f
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xf7a179d
mov ecx, 0x8d5381fa
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x1000119f
push eax
mov eax, esp
mov dword [ebp - 0x18], eax
mov ecx, dword [0x1006cb50]
mov eax, dword [0x1006cb4c]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xf7a179d
mov ecx, 0x1cddea68
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x1000119f
mov dword [ebp - 0x1c], 0x636786a5
jmp 0x1000119f
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
xor ecx, ecx
xor edi, edi
mov ecx, dword [ebp - 0x14]
mov edi, dword [edx]
not byte [edi]
xor eax, eax
xor eax, 0x55
sub byte [edi], 0x47
add byte [edi], 0x86
nop
nop
imul byte [edi]
inc edi
loop 0x10001172
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000edc0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], 0x8d5381fa
jmp 0x10001026
Function at 0x100126c5
Capabilities:
Parse pe header

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