joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c5b
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x104
mov eax, dword [0x4408b0]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
push ebx
or ebx, 0xffffffff
push eax
mov word [0x445000], bx
call fcn.00402ac1
movzx eax, ax
pop ecx
test ax, ax
jns 0x401c99
movsx eax, word [0x445000]
jmp 0x401cbe
push esi
movsx esi, ax
push 0x41ae14
push dword [esi*4 + 0x42e030]
call fcn.0040379d
pop ecx
pop ecx
test eax, eax
jns 0x401cd4
push esi
call fcn.0040214f
pop ecx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x104]
pop ebx
xor ecx, esp
call fcn.0040682e
add esp, 0x104
ret
push 2
push dword [esi*4 + 0x42e030]
call fcn.00404d22
pop ecx
pop ecx
test eax, eax
js 0x401dec
push edi
push dword [esi*4 + 0x42e030]
push str.time
call fcn.00404b1d
pop ecx
push eax
lea eax, [esp + 0x14]
push str._s__s
push eax
call fcn.00406635
add esp, 0x10
lea eax, [esp + 0xc]
push 0x41ae58
push eax
call fcn.0040a080
pop ecx
lea ecx, [esp + 0x10]
sub ecx, 3
add eax, ecx
push eax
call fcn.00406520
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0040226f
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x401dd3
push ebp
mov ebp, 0x1b6
lea eax, [esp + 0x10]
push ebp
push 2
push eax
call fcn.0040463d
add esp, 0xc
mov ebx, eax
push ebp
push 0x8102
push dword [esi*4 + 0x42e030]
call fcn.00404a15
pop ecx
push eax
call fcn.0040463d
add esp, 0xc
mov ebp, eax
cmp edi, 1
jl 0x401db6
movsx eax, word [esi*2 + 0x42eb60]
push eax
push dword [esi*4 + 0x42e4a0]
push ebx
call fcn.00406f98
movsx eax, word [esi*2 + 0x42eb60]
push eax
push dword [esi*4 + 0x42e4a0]
push ebp
call fcn.0040783d
add esp, 0x18
dec edi
jne 0x401d84
push ebx
call fcn.004066b9
push ebp
call fcn.004066b9
lea eax, [esp + 0x18]
push eax
call fcn.00406d71
add esp, 0xc
or ebx, 0xffffffff
pop ebp
push 1
push dword [esi*4 + 0x42e030]
call fcn.00404d22
pop ecx
pop ecx
pop edi
test eax, eax
jns 0x401cbb
mov eax, ebx
jmp 0x401cbd
Function at 0x40256f
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
call fcn.00402a39
movzx eax, ax
pop ecx
test ax, ax
jns 0x402586
xor eax, eax
pop ecx
ret
push ebx
push ebp
push 0
movsx ebx, ax
push 0
push ebx
call fcn.00406e02
push 4
pop ebp
push ebp
push 0x42e02c
push ebx
call fcn.00406f98
add esp, 0x18
mov word [0x445000], ax
cmp ax, bp
je 0x4025ba
push 0xfffffffffffffffd
pop eax
jmp 0x40265b
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4025cc
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x4025df
push 1
push dword [0x42e02c]
call fcn.00402ae9
pop ecx
pop ecx
mov esi, eax
xor edi, edi
push esi
push dword [0x42e02c]
call fcn.00402baf
push 0x453154
mov ebp, eax
call fcn.00406618
add esp, 0xc
cmp edi, eax
jle 0x402602
push 0xfffffffffffffff8
jmp 0x402616
push dword [0x42e02c]
push esi
call fcn.00402bca
pop ecx
pop ecx
test eax, eax
jns 0x402619
push 0xfffffffffffffff7
pop eax
jmp 0x402659
push 0x453154
call fcn.00406618
inc eax
imul eax, ebp
push 0
add eax, edi
shl eax, 2
push eax
push ebx
call fcn.00406e02
push 4
pop esi
push esi
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00406f98
xor ecx, ecx
mov word [0x445000], ax
add esp, 0x1c
cmp ax, si
cmove ecx, dword [esp + 0x10]
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x402714
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push dword [esp + 0x10]
call fcn.00402a39
movzx eax, ax
pop ecx
test ax, ax
jns 0x402731
or eax, 0xffffffff
jmp 0x40280c
push ebx
push ebp
push esi
push edi
push 2
xor edi, edi
movsx ebp, ax
push edi
push ebp
call fcn.00406e02
push 0x453154
mov esi, eax
call fcn.00406618
xor edx, edx
push edi
push edi
lea ebx, [eax + 1]
mov eax, esi
mov ecx, ebx
shl ecx, 2
div ecx
push ebp
inc eax
mov dword [esp + 0x34], eax
call fcn.00406e02
push 4
pop esi
push esi
push 0x42e02c
push ebp
mov dword [esp + 0x3c], esi
call fcn.00406f98
add esp, 0x28
mov word [0x445000], ax
cmp ax, si
je 0x402790
push 0xfffffffffffffffd
pop eax
jmp 0x402808
mov esi, dword [esp + 0x24]
xor eax, eax
mov ecx, dword [esp + 0x28]
inc eax
test esi, esi
cmove esi, eax
mov eax, dword [0x42e02c]
test ecx, ecx
cmove ecx, eax
push ecx
push eax
call fcn.00402baf
pop ecx
pop ecx
mov edi, eax
mov ecx, edi
imul ecx, ebx
push 0
add ecx, esi
shl ecx, 2
push ecx
push ebp
call fcn.00406e02
push 4
pop eax
push eax
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.00406f98
mov ecx, dword [esp + 0x28]
xor edx, edx
add esp, 0x18
mov word [0x445000], ax
cmp ax, word [esp + 0x14]
cmovne ecx, edx
mov dword [esp + 0x10], ecx
cmp edi, dword [esp + 0x18]
jge 0x4027fb
inc edi
jmp 0x4027fe
xor edi, edi
inc esi
test ecx, ecx
jne 0x402806
cmp esi, ebx
jl 0x4027b5
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402810
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push dword [esp + 0x10]
call fcn.00402a39
movzx eax, ax
pop ecx
test ax, ax
jns 0x40282d
or eax, 0xffffffff
jmp 0x402919
push ebx
push ebp
push esi
xor esi, esi
movsx ebx, ax
push esi
push esi
push ebx
call fcn.00406e02
push 4
pop ebp
push ebp
push 0x42e02c
push ebx
mov dword [esp + 0x2c], ebp
call fcn.00406f98
add esp, 0x18
mov word [0x445000], ax
cmp ax, bp
je 0x402866
push 0xfffffffffffffffd
pop eax
jmp 0x402916
push edi
push 0x453154
call fcn.00406618
push 2
push esi
push ebx
lea ebp, [eax + 1]
mov dword [esp + 0x24], ebp
call fcn.00406e02
mov ecx, ebp
mov edi, dword [esp + 0x34]
shl ecx, 2
xor edx, edx
div ecx
add esp, 0x10
mov ebp, eax
test edi, edi
je 0x4028b1
cmp dword [esp + 0x28], esi
je 0x4028b1
push dword [esp + 0x28]
push dword [0x42e02c]
call fcn.00402baf
pop ecx
mov esi, eax
jmp 0x4028c0
push 0x453154
call fcn.00406618
mov edi, eax
lea esi, [ebp + 1]
pop ecx
mov ecx, esi
imul ecx, dword [esp + 0x14]
push 0
add ecx, edi
shl ecx, 2
push ecx
push ebx
call fcn.00406e02
push 4
pop eax
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00406f98
mov ecx, dword [esp + 0x28]
xor edx, edx
add esp, 0x18
mov word [0x445000], ax
cmp ax, word [esp + 0x18]
cmovne ecx, edx
mov dword [esp + 0x10], ecx
test esi, esi
jle 0x402907
dec esi
jmp 0x40290b
lea esi, [ebp + 1]
dec edi
test ecx, ecx
jne 0x402913
test edi, edi
jg 0x4028c1
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x40291d
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push 0x41ae74
push dword [eax*4 + 0x42e030]
call fcn.0040379d
movzx eax, ax
pop ecx
pop ecx
test ax, ax
jns 0x402940
or eax, 0xffffffff
ret
push ebx
push esi
push 0
movsx esi, ax
push 0
push esi
call fcn.00406e02
push 4
pop ebx
push ebx
push 0x42e02c
push esi
call fcn.00406f98
add esp, 0x18
mov word [0x445000], ax
cmp ax, bx
je 0x402974
push 0xfffffffffffffffd
pop eax
jmp 0x402a36
push ebp
push edi
push 0x453154
call fcn.00406618
mov ebx, dword [esp + 0x1c]
pop ecx
lea ebp, [eax + 1]
test ebx, ebx
je 0x402994
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4029a7
push 1
push dword [0x42e02c]
call fcn.00402ae9
pop ecx
pop ecx
mov edi, eax
xor ebx, ebx
push 2
push 0
push esi
call fcn.00406e02
push edi
push dword [0x42e02c]
mov dword [esp + 0x28], eax
call fcn.00402baf
mov edi, eax
add esp, 0x14
mov eax, dword [esp + 0x14]
imul edi, ebp
add edi, ebx
shl edi, 2
cmp edi, eax
jle 0x402a06
mov ebx, edi
sub ebx, eax
push ebx
call fcn.0040a26c
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x4029ec
push 0xfffffffffffffffa
pop eax
jmp 0x402a34
push ebx
push 0
push ebp
call fcn.00409f60
push ebx
push ebp
push esi
call fcn.0040783d
push ebp
call fcn.0040a234
add esp, 0x1c
push 0
push edi
push esi
call fcn.00406e02
push 4
pop edi
push edi
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0040783d
add esp, 0x18
mov word [0x445000], ax
xor edx, edx
cmp ax, di
push 0xfffffffffffffffd
pop ecx
cmove ecx, edx
mov eax, ecx
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x4048f3
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x23c
mov eax, dword [0x4408b0]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x244]
push ebx
push ebp
mov ebp, dword [esp + 0x248]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x254]
push edi
push 0x103
mov dword [esp + 0x20], eax
lea eax, [esp + 0x149]
push ebx
push eax
mov byte [esp + 0x150], bl
call fcn.00409f60
add esp, 0xc
mov dword [esp + 0x18], 0x104
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
push ebx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x16c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push 0x41ae2b
push esi
mov edi, ebx
call fcn.00406520
pop ecx
pop ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x7d
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x18], 0x7d
push eax
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xd8]
push eax
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [esp + 0x1c]
mov ebx, eax
inc edi
lea eax, [esp + 0xc8]
push eax
call fcn.00409ff0
pop ecx
pop ecx
test eax, eax
jne 0x4049f3
push 0x100
push esi
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
test ebx, ebx
pop ebx
je 0x404997
mov ecx, dword [esp + 0x248]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040682e
add esp, 0x23c
ret

Function at 0x404d22
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 0x442030
push edi
xor edi, edi
test esi, esi
je 0x404d41
push ebx
push esi
call fcn.00409ff0
pop ecx
pop ecx
test eax, eax
je 0x404d78
mov eax, dword [0x44202c]
test eax, eax
je 0x404d57
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x44202c], edi
test esi, esi
je 0x404dd3
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x44202c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
call fcn.00406520
pop ecx
pop ecx
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x404d98
push 0xffffffffffffffff
push dword [0x44202c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x404d81
jmp 0x404dd3
cmp eax, 1
je 0x404dc7
cmp eax, 3
jne 0x404db1
push edi
push dword [0x44202c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x404dd3
cmp eax, 4
jne 0x404dd3
push edi
push dword [0x44202c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
js 0x404dd3
push dword [0x44202c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4051d2
Capabilities:
Move file

Disassembly:
push dword [esp + 8]
call fcn.00406d71
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040b3e3
add esp, 0xc
cwde
ret
Function at 0x40531d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
imul eax, dword [ebp + 0x10]
push 0
push eax
push dword [ebp + 8]
call fcn.00406e02
add esp, 0xc
test eax, eax
jns 0x40533f
push 0xfffffffffffffffe
pop eax
pop ebp
ret
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00406f98
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x40535a
push 0xfffffffffffffffd
jmp 0x40533c
xor eax, eax
cmp ecx, dword [ebp + 0x10]
push 0xfffffffffffffffb
pop edx
cmovne eax, edx
pop ebp
ret
Function at 0x4130a7
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4408b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040d5b6
mov dword [ebp - 0x14], eax
cmp dword [0x444bc0], esi
jne 0x41319a
push 0x800
push esi
push 0x42a654
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x413127
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41327a
push esi
push esi
push 0x42a654
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41327a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41327a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x444bc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x444bc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x444bc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x444bd0], eax
test eax, eax
je 0x413197
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x444bcc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4131bf
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4131b2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4131d4
push 4
pop eax
jmp 0x41327c
cmp dword [ebp - 0x14], esi
je 0x4131d4
push dword [0x444bc0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4131b9
mov eax, dword [0x444bcc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x413232
cmp dword [0x444bd0], edi
je 0x413232
push eax
call ebx
push dword [0x444bd0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x413232
test eax, eax
je 0x413232
call ecx
test eax, eax
je 0x413227
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x413227
test byte [ebp - 8], 1
jne 0x413232
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x413262
mov eax, dword [0x444bc4]
cmp eax, edi
je 0x41325f
push eax
call ebx
test eax, eax
je 0x41325f
call eax
mov esi, eax
test esi, esi
je 0x41325f
mov eax, dword [0x444bc8]
cmp eax, edi
je 0x41325f
push eax
call ebx
test eax, eax
je 0x41325f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x444bc0]
call ebx
test eax, eax
je 0x41327a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41327c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040682e
mov esp, ebp
pop ebp
ret
Function at 0x10001290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, esp
mov dword [esi + 0x58], ebp
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x5c], esp
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0x100135c0
lea ecx, [esi + 0x60]
mov edx, dword fs:[0]
cmp eax, 1
mov dword [esi + 0x60], edx
mov dword fs:[0], ecx
jne 0x1000142a
mov eax, dword [ebp + 8]
movaps xmm1, xmmword [0x1002b1d0]
xorps xmm0, xmm0
movaps xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 0
movups xmmword [esi + 0x48], xmm1
call fcn.1001c660
movaps xmm0, xmmword [0x1002b1e0]
mov dword [esi + 0xd], 0xdb61ed86
mov dword [esi + 0x11], 0x58c81693
mov word [esi + 0x15], 0xe151
mov byte [esi + 0x17], 0xc3
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], 0xb69a0bbd
mov dword [esi + 0x2c], 0x5a66217d
mov eax, dword [0x1005ff58]
test eax, eax
jne 0x10001342
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1000143d
mov dword [0x1005ff58], eax
push 0x23800
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1000143d
push 0x23800
push 0x1002b230
mov dword [esi + 4], eax
push eax
call fcn.1001dcd0
add esp, 0xc
xor eax, eax
nop
mov edi, 0xfffdc800
lea ebx, [esi + 0x18]
xor ecx, ecx
mov dword [esi + 8], eax
nop dword [eax]
mov eax, ecx
mov edx, 0xaaaaaaab
inc ecx
mul edx
shr edx, 1
and edx, 0xfffffff8
lea eax, [edx + edx*2]
mov edx, dword [esi + 4]
neg eax
movzx eax, byte [ebx + eax]
inc ebx
xor byte [edx + edi + 0x23800], al
inc edi
jne 0x10001380
mov eax, dword [esi + 8]
inc eax
cmp eax, 0x3e9
jne 0x10001370
mov ebx, dword [esi + 4]
xor eax, eax
nop word cs:[eax + eax]
mov edi, 0xfffdc800
xor ecx, ecx
mov dword [esi + 8], eax
nop word [eax + eax]
mov eax, ecx
mov edx, 0xba2e8ba3
inc ecx
mul edx
shr edx, 3
imul eax, edx, 0xfffffff5
lea eax, [esi + eax + 0xd]
movzx eax, byte [edi + eax + 0x23800]
xor byte [ebx + edi + 0x23800], al
inc edi
jne 0x100013d0
mov eax, dword [esi + 8]
inc eax
cmp eax, 0x3e9
jne 0x100013c0
mov eax, dword [esi + 4]
mov dword [esi + 0x68], 0
mov dword [esi + 0x30], eax
lea eax, [esi + 0x30]
push eax
call fcn.1001c850
add esp, 4
push dword [esi + 4]
push 0
push dword [0x1005ff58]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0x60]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, 0x23800
mov edx, 1
call fcn.10029af0
ud2
Function at 0x10002c40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x10002c90
cmp edi, esi
jb 0x10002cf8
cmp edi, dword [esp + 0x1c]
ja 0x10002d0b
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x10002c92
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x10002c80
jmp 0x10002cef
ja 0x10002c98
cmp eax, edx
mov esi, edi
jne 0x10002c53
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x10002cd0
mov ebp, esi
sub ecx, edx
jns 0x10002ce7
jmp 0x10002cf1
cmp esi, edi
je 0x10002d20
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x10002cf1
xor al, 1
cmp ebp, edi
jne 0x10002cb0
jmp 0x10002cf1
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x1004f350
call fcn.10029d30
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x1004f350
call fcn.10029c70
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x1004f360
call fcn.10029ce0
add esp, 4
ud2
Function at 0x1000bfb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x1000bfc5
test eax, eax
jne 0x1000c0dd
mov ebp, dword [0x1005ff5c]
test ebp, ebp
je 0x1000c0dd
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
jmp 0x1000bfe7
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x1000c008
push dword [ebp + 4]
call edi
test eax, eax
je 0x1000bfe0
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x1000bfe0
test bl, 1
je 0x1000c0dd
mov ebp, dword [0x1005ff5c]
test ebp, ebp
je 0x1000c0dd
xor ebx, ebx
jmp 0x1000c037
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x1000c058
push dword [ebp + 4]
call edi
test eax, eax
je 0x1000c030
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x1000c030
test bl, 1
je 0x1000c0dd
mov ebp, dword [0x1005ff5c]
test ebp, ebp
je 0x1000c0dd
xor ebx, ebx
jmp 0x1000c077
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x1000c098
push dword [ebp + 4]
call edi
test eax, eax
je 0x1000c070
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x1000c070
test bl, 1
je 0x1000c0dd
mov ebp, dword [0x1005ff5c]
test ebp, ebp
je 0x1000c0dd
xor ebx, ebx
jmp 0x1000c0b7
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x1000c0d8
push dword [ebp + 4]
call edi
test eax, eax
je 0x1000c0b0
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
mov bl, 1
jmp 0x1000c0b0
test bl, 1
jne 0x1000c0e9
mov al, byte [0x1005c780]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebp, dword [0x1005ff5c]
jmp 0x1000c0f4
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x1000c0dd
push dword [ebp + 4]
call edi
test eax, eax
je 0x1000c0f1
mov esi, eax
push 0
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [ebp]
add esp, 4
jmp 0x1000c0f1
Function at 0x1000cc60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x1005f04c]
test eax, eax
je 0x1000cc78
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x1000cc8e
jmp 0x1000cc99
mov ecx, 0x1005f04c
call fcn.100125c0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x1000cc99
cmp dword [eax], 1
mov esi, eax
je 0x1000cd29
mov eax, dword [0x1005f04c]
test eax, eax
je 0x1000ccb8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000cccd
xor esi, esi
cmp eax, 1
je 0x1000cd2c
mov esi, eax
jmp 0x1000cd1c
mov ecx, 0x1005f04c
call fcn.100125c0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1000ccad
mov eax, dword [0x1005ff58]
test eax, eax
jne 0x1000cce4
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1000cd30
mov dword [0x1005ff58], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1000cd30
mov dword [eax], 0
mov dword [eax + 8], 0x1005f04c
mov esi, eax
mov eax, dword [0x1005f04c]
test eax, eax
jne 0x1000cd14
mov ecx, 0x1005f04c
call fcn.100125c0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 1
mov dword [esi + 4], 0
add esi, 4
mov eax, esi
pop esi
ret
mov ecx, 0xc
mov edx, 4
call fcn.10029af0
ud2
Function at 0x100125c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100136c0
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1005ff44
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebp - 0x20], 0x1005ff44
mov edi, dword [esi]
test edi, edi
jne 0x10012675
mov ebx, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x10012691
mov edi, eax
test ebx, ebx
je 0x1001266d
mov eax, dword [0x1005ff58]
test eax, eax
jne 0x10012636
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10012737
mov dword [0x1005ff58], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10012737
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], 0
mov ecx, eax
mov eax, dword [0x1005ff5c]
nop dword [eax + eax]
mov dword [ecx + 8], eax
lock cmpxchg dword [0x1005ff5c], ecx
jne 0x10012660
mov eax, edi
test edi, edi
xchg dword [esi], eax
je 0x100126b1
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, str.assertion_failed:_key___c::TLS_OUT_OF_INDEXESC:ussrcjgdynfqgxpupyzvxdjhzgswipgermcgmohmxcepnnaojnpwtzainzvyktdzegdfgzpmlneewinyzzczcrtaxeamlvdrvqmyossewbvvwldselvgaivcvijdtnbhyhxgynzwpyg
mov edx, 0x2e
push 0x1005161c
call fcn.10029ce0
add esp, 4
ud2
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x68], 0x10050f5c
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0x10050570
mov dword [ebp - 0x50], 0x10050db4
mov dword [ebp - 0x4c], 2
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x10001d70
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 1
call fcn.1000cd50
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
call fcn.1000cf10
mov ecx, 7
int 0x29
ud2
mov ecx, 0xc
mov edx, 4
call fcn.10029af0
ud2