joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5c80c0]
cmp dword [eax*4 + 0x5d4398], 0
je 0x477d4c
cmp dword [0x5d4384], 0
je 0x477d4c
push esi
push str.extra:_n
call fcn.00477710
mov edx, dword [0x5d4384]
add esp, 4
mov eax, edx
mov dword [ebp - 4], 0
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x477d20
sub eax, esi
lea ecx, [ebp - 4]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
mov eax, dword [0x5c80c0]
push edx
push dword [eax*4 + 0x5d4398]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531900
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c6150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x22e8
mov dword [eax], 0x22e8
call fcn.004e1b5b
push 0x22e8
push 0
mov dword [esi], eax
mov esi, dword [edi + 0x550]
push eax
mov dword [ebp - 0x10], eax
call fcn.004d9fe0
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [eax + 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
call esi
mov ecx, dword [ebp - 0x10]
push 0
mov dword [ecx + 0x28], eax
call fcn.004e2e2c
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ecx], eax
mov dword [ecx + 4], edx
call esi
mov esi, dword [ebp - 0x10]
add edi, 0x42c
mov dword [esi + 8], eax
lea eax, [edi + 0xc]
cmp byte [edi + 0x11c], 0
jne 0x4784fb
mov eax, dword [edi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x478561
shr eax, 4
not al
and al, 1
je 0x478561
push edi
push ebx
mov ecx, esi
call fcn.00477fb0
test al, al
jne 0x478561
mov ecx, ebx
call fcn.00450c80
push 0x5a3150
push 0x5971f4
push eax
call fcn.00450580
add esp, 0xc
mov ecx, edi
push ebx
call fcn.004541c0
test al, al
jne 0x47855a
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 ecx, ebx
call fcn.00450cd0
mov al, 1
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
Function at 0x47e520
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531ea0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5c6150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x54
call fcn.004d7188
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0x11
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], fcn.004e1b5b
mov dword [esi + 0x34], fcn.004e1ae7
mov dword [esi + 0x38], fcn.004e1b56
mov eax, dword [esi + 8]
mov dword [esi + 0xc], 0x3f400000
mov dword [esi + 0x10], 0x3e800000
mov dword [esi + 0x14], 0x40100000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5af650]
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x10], xmm0
mulss xmm0, dword [0x5af4e0]
call fcn.004d76d0
movss xmm0, dword [ebp - 0x10]
mulss xmm0, dword [0x5af4c0]
mov dword [esi + 0x18], eax
call fcn.004d76d0
mov dword [esi + 0x1c], eax
cmp eax, 0x11
jae 0x47e604
mov dword [esi + 0x1c], 0
mov dword [esi + 0x40], fcn.004e1b5b
mov dword [esi + 0x44], fcn.004e1ae7
mov dword [esi + 0x48], fcn.004e1b56
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0x1fff8
mov dword [esi + 0x3c], vtable.t_heap.0
mov dword [ebp - 4], 0xffffffff
push 0x3c
mov dword [ebx], esi
call fcn.004d7188
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0xa
mov dword [eax + 0x14], fcn.004e1b5b
mov dword [eax + 0x18], fcn.004e1ae7
mov dword [eax + 0x1c], fcn.004e1b56
mov dword [eax + 0x20], 0
mov dword [eax + 0x28], fcn.004e1b5b
mov dword [eax + 0x2c], fcn.004e1ae7
mov dword [eax + 0x30], fcn.004e1b56
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0x1fff8
mov dword [eax + 0x24], vtable.t_heap.0
push 0x244
mov dword [ebx + 4], eax
call fcn.004d7188
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push str.Localcs_hklsCache
push 9
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call fcn.00460ad0
mov word [esi + 0xc], 0
mov dword [ebp - 4], 0xffffffff
push 0x10
mov dword [ebx + 8], esi
call fcn.004d7188
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 3
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0044ad50
mov dword [edi], eax
lea esi, [edi + 8]
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0044ad50
mov ecx, esi
mov dword [esi], eax
call fcn.0044a890
mov ecx, edi
call fcn.0044a890
mov dword [ebx + 0xc], edi
mov eax, ebx
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 0x481550
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53219d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c6150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
call fcn.004821d0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x48173a
cmp dword [0x5c92e4], eax
je 0x4816dd
push 0x5dea64
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 0x10]
call fcn.004821d0
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x4816be
push 0x10
call fcn.004d7188
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.0047e520
mov dword [ebp - 4], 0xffffffff
mov esi, eax
cmp dword [0x5c92e4], 0
je 0x4816be
push dword [0x5c92ec]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x4816be
cmp dword [eax], 0x12
jbe 0x4816be
mov eax, dword [eax + 8]
mov edi, dword [eax + 0x48]
test edi, edi
jne 0x48166b
push 8
call fcn.004d7188
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.t_visualDataItemPtr_struct_t_hklManager_InstallWrap_.0
mov dword [edi + 4], esi
cmp dword [0x5c92e4], 0
je 0x4816be
push dword [0x5c92ec]
call ebx
test eax, eax
je 0x4816be
cmp dword [eax], 0x12
jbe 0x4816be
mov eax, dword [eax + 8]
push 0x5dea64
mov dword [eax + 0x48], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.t_visualDataItemPtr_struct_t_hklManager_InstallWrap_.0
jne 0x4816b9
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x481697
mov ecx, ebx
mov dword [edi + 4], 0
call fcn.0047e770
push 0x10
push ebx
call fcn.004d72b2
add esp, 8
push 0x5dea64
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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
push esi
mov ecx, edi
call edx
push 0x5dea64
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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
mov eax, dword [0x5df078]
test eax, eax
jne 0x48173a
push 0x5dea64
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5e240c]
test al, 1
jne 0x481720
or eax, 1
mov dword [0x5e240c], eax
mov ecx, 0x5e2410
mov dword [ebp - 4], 1
call fcn.0047e520
push 0x53b880
call fcn.004d7173
add esp, 4
push 0x5dea64
mov dword [0x5df078], 0x5e2410
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x5df078]
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 0x4821d0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x5c92e4], 0
push esi
mov esi, edx
je 0x48222f
push dword [0x5c92ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48222f
cmp dword [eax], 0x12
jbe 0x48222f
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x48222f
push 0
push 0x5cdc38
push 0x5cd7ec
push 0
push eax
call fcn.004daa9e
add esp, 0x14
test eax, eax
je 0x48222f
mov edx, dword [eax]
cmp edx, vtable.t_visualDataItemPtr_struct_t_hklManager_InstallWrap_.0
jne 0x482233
mov eax, dword [eax + 4]
mov dword [esi], eax
mov al, 1
pop esi
ret
mov dword [esi], eax
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
mov ecx, eax
call dword [edx + 8]
jmp 0x482229
Function at 0x482340
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push edi
push 0x208
mov ebx, ecx
mov dword [ebp - 0x630], edx
push 0
push eax
mov dword [ebp - 0x638], ebx
call fcn.004d9fe0
add esp, 0xc
lea eax, [ebp - 0x624]
push 0x208
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
mov dword [ebp - 0x62c], 0x208
lea eax, [ebp - 0x62c]
mov ecx, esi
push 1
push str.Layout_Display_Name
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.0044f780
test al, al
jne 0x4823ed
push 1
push str.System_Layout_Display_Name
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], 0x208
push eax
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
push ebx
call fcn.0044f780
test al, al
je 0x482539
mov eax, 0x40
lea ecx, [ebp - 0x214]
cmp ax, word [ebp - 0x214]
lea esi, [ebp - 0x212]
push 0x2c
cmovne esi, ecx
push esi
call fcn.004d9454
mov edi, eax
add esp, 8
test edi, edi
je 0x482539
push 0xa
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], 0
push eax
lea ecx, [edi + 2]
push ecx
call fcn.004e3557
add esp, 0xc
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x41c]
push 0x208
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
lea eax, [ebp - 0x41c]
sub edi, esi
sar edi, 1
push edi
push esi
push 0x104
push eax
call fcn.004e2f3b
add esp, 0x10
lea eax, [ebp - 0x624]
push 0x104
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x482539
push 2
push 0
lea eax, [ebp - 0x624]
mov byte [ebp - 0x625], 1
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x482539
mov eax, dword [ebp - 0x634]
cdq
mov ebx, eax
mov eax, dword [ebp - 0x630]
xor ebx, edx
push 0x105
sub ebx, edx
lea esi, [eax + 8]
mov dword [eax + 0x120], 0x105
mov ecx, esi
call fcn.00450b00
cmp byte [esi + 0x114], 0
lea eax, [esi + 4]
jne 0x4824ef
mov eax, dword [esi]
push 0x104
add eax, 4
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [ebp - 0x630]
mov ebx, eax
neg ebx
sbb bl, bl
call fcn.004502b0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and bl, byte [ebp - 0x625]
je 0x482533
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x638]
mov ecx, ebx
call fcn.00450c80
push 0x5ac5c4
push 0x5971f4
push eax
call fcn.00450580
mov ecx, dword [ebp - 8]
add esp, 0xc
xor ecx, ebp
xor al, al
pop edi
pop esi
pop ebx
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x484d90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
cmp word [eax], 0x40
lea esi, [eax + 2]
push edi
mov edi, ecx
mov dword [ebp - 0x220], edx
mov ecx, dword [ebp + 0xc]
cmovne esi, eax
push 0x2c
push esi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], ecx
call fcn.004d9454
add esp, 8
test eax, eax
jne 0x484e09
mov ecx, edi
call fcn.00450c80
push str.gb0R
push 0x5971f4
push eax
call fcn.00450580
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.004e1a93
mov ecx, dword [ebp - 0x218]
add esp, 4
mov dword [ecx], eax
test eax, eax
jns 0x484e2a
neg eax
mov dword [ecx], eax
cmp dword [ebx + 0x120], 0
je 0x484e3d
mov dword [ebx + 0x120], 0
lea edi, [ebx + 8]
mov dword [ebx + 4], 0
push 1
mov ecx, edi
mov dword [ebp - 0x218], edi
call fcn.00450b00
cmp byte [edi + 0x114], 0
lea eax, [edi + 4]
jne 0x484e64
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + 4], cx
xor eax, eax
cmp ax, word [esi]
je 0x484f3c
push 0x25
push esi
call fcn.004d9454
add esp, 8
mov edi, eax
push esi
push 0x5971f4
push ebx
test edi, edi
je 0x484f2e
xor eax, eax
mov word [edi], ax
add edi, 2
call fcn.00450580
add esp, 0xc
push 0x25
push edi
call fcn.004d9454
add esp, 8
test eax, eax
je 0x484f19
xor ecx, ecx
lea esi, [eax + 2]
mov word [eax], cx
lea eax, [ebp - 0x214]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x484eed
lea eax, [ebp - 0x214]
push eax
push 0x5971f4
push ebx
call fcn.00450580
xor eax, eax
add esp, 0xc
cmp ax, word [esi]
jne 0x484e75
jmp 0x484f36
mov ecx, dword [ebp - 0x21c]
call fcn.00450c80
push 0x5ac880
mov esi, eax
push 0x5971f4
push esi
call fcn.00450580
add esp, 0xc
push edi
push 0x5971f4
push esi
jmp 0x484dee
mov ecx, dword [ebp - 0x21c]
call fcn.00450c80
push 0x5ac834
jmp 0x484de8
call fcn.00450580
add esp, 0xc
mov edi, dword [ebp - 0x218]
cmp byte [edi + 0x114], 0
lea eax, [edi + 4]
jne 0x484f4a
mov eax, dword [edi]
push 2
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x220]
mov dword [ecx], eax
test eax, eax
jne 0x484fa2
cmp byte [edi + 0x114], al
je 0x484f71
add edi, 4
jmp 0x484f73
mov edi, dword [edi]
mov ecx, dword [ebp - 0x21c]
call fcn.00450c80
push 0x5ac860
mov esi, eax
push 0x5971f4
push esi
call fcn.00450580
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x5971f4
push esi
jmp 0x484dee
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x487090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53263f
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00455c10
mov byte [ebp - 0x494], 0
mov dword [ebp - 0x498], 0
mov dword [ebp - 4], 0
mov eax, dword [0x5e2420]
test al, 1
jne 0x487120
or eax, 1
mov dword [0x5e2420], eax
push 0
push 0
push 0
push 0
push 0
push ecx
mov byte [ebp - 4], 1
call fcn.00486fb0
add esp, 4
mov ecx, 0x5e2558
push eax
call fcn.00451610
push 0x53b8f0
call fcn.004d7173
add esp, 4
mov byte [ebp - 4], 0
cmp byte [0x5e2674], 0
mov esi, 0x5e2564
mov eax, esi
cmove eax, dword [0x5e2560]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487151
shr eax, 4
not al
and al, 1
jne 0x487268
mov ecx, 0x5e2558
call fcn.00451e40
test al, al
mov eax, esi
je 0x4871e8
cmp byte [0x5e2674], 0
lea ecx, [ebp - 0x138]
push 0
cmove eax, dword [0x5e2560]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.00451610
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 2
push eax
push 0x59fe28
lea ecx, [ebp - 0x498]
call fcn.00450c80
mov ecx, eax
call fcn.004510e0
mov byte [ebp - 4], 0
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x138], vtable.t_str.0
jne 0x487268
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x487268
push eax
call fcn.004e1b56
add esp, 4
jmp 0x487268
cmp byte [0x5e2674], 0
cmove eax, dword [0x5e2560]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48720e
shr eax, 4
not al
and al, 1
jne 0x487268
push ecx
lea ecx, [ebp - 0x490]
call fcn.0045c820
push 1
push 0x5e2558
lea eax, [ebp - 0x498]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x490]
call fcn.0045c980
test al, al
jne 0x487259
lea ecx, [ebp - 0x498]
call fcn.00450c80
push 0x59fe18
push 0x5971f4
push eax
call fcn.00450580
add esp, 0xc
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 0
call fcn.0045c8c0
cmp byte [0x5e2674], 0
mov ecx, ebx
push 0x3a8
cmove esi, dword [0x5e2560]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x498]
push eax
call fcn.00455f50
lea ecx, [ebp - 0x498]
call fcn.00450c20
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x48c860
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x5c92e4], 0
push esi
mov esi, edx
je 0x48c8b5
push dword [0x5c92ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c8b5
cmp dword [eax], 1
jbe 0x48c8b5
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x48c8b5
push 0
push 0x5cdfe4
push 0x5cd7ec
push 0
push eax
call fcn.004daa9e
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x48c8b5
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov byte [esi], al
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x48e910
Capabilities:
Encrypt or decrypt via wincrypt
Reference public rsa key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
mov dword [ebp - 4], edx
test edi, edi
je 0x48ea5b
cmp edx, 0xffffffff
je 0x48ea5b
push ebx
push esi
xor esi, esi
call fcn.004c5120
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x48ea49
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
push esi
push 0x94
push 0x591488
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x48ea2e
push dword [ebp - 4]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push esi
push esi
push 1
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x48ea23
push dword [ebp - 0xc]
call fcn.004d72c0
push dword [ebp - 4]
mov esi, eax
push edi
push esi
call fcn.004d9a60
add esp, 0x10
lea eax, [ebp - 4]
push dword [ebp - 0xc]
push eax
push esi
push 0
push 1
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x48ea0d
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp - 4]
mov dword [eax], ebx
test ebx, 0xfffffffe
jbe 0x48e9ef
mov edx, esi
nop dword [eax + eax]
mov al, byte [edx + ebx - 1]
lea edx, [edx - 1]
mov cl, byte [edi + esi]
mov byte [edi + esi], al
inc edi
mov eax, dword [ebp - 4]
mov byte [edx + eax], cl
mov ebx, dword [ebp - 4]
mov eax, ebx
shr eax, 1
cmp edi, eax
jb 0x48e9d0
mov ebx, dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
mov dword [eax], 0xfffffff5
call fcn.004d71b8
add esp, 4
xor esi, esi
jmp 0x48e9f2
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff4
jmp 0x48e9f2
mov eax, dword [ebp + 0xc]
push 0
push ebx
mov dword [eax], 0xfffffff3
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff2
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], 0xfffffff6
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x48ea70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, ebx
cdq
and edx, 3
add eax, edx
push esi
sar eax, 2
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test eax, eax
jle 0x48eaa0
nop dword [eax]
xor dword [esi], edi
add esi, 4
imul edi, edi, 0x5b230545
sub eax, 1
jne 0x48ea90
and ebx, reloc.WS2_32.dll_closesocket
jns 0x48eaad
dec ebx
or ebx, 0xfffffffc
inc ebx
je 0x48eadd
push ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push esi
push eax
call fcn.004d9a60
xor dword [ebp + 8], edi
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004d9a60
add esp, 0x18
imul eax, edi, 0x5b230545
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x48eaf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5331b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5c6150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cdq
and edx, 3
lea ebx, [edx + eax]
sar ebx, 2
test ebx, ebx
jle 0x48eb6a
mov eax, dword [edi]
lea edx, [ebp + 0xc]
xor eax, esi
add edi, 4
push 4
mov dword [ebp + 0xc], eax
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x18]
push edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
imul esi, esi, 0x5b230545
sub ebx, 1
jne 0x48eb43
mov ebx, dword [ebp + 8]
and ebx, reloc.WS2_32.dll_closesocket
jns 0x48eb7a
dec ebx
or ebx, 0xfffffffc
inc ebx
je 0x48ebab
push ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push edi
push eax
call fcn.004d9a60
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
xor dword [ebp + 8], esi
add esp, 0xc
mov edx, dword [ecx]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
call dword [edx + 4]
imul esi, esi, 0x5b230545
lea ecx, [ebp - 0x18]
call fcn.00450c20
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
Function at 0x48ed60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533221
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x5c6150]
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 edi, ecx
push ecx
lea ecx, [ebp - 0x498]
call fcn.0045c820
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x4a0], 0
mov dword [ebp - 0x4a4], 0
mov byte [ebp - 4], 1
lea eax, [edi + 0x10]
cmp byte [edi + 0x120], 0
mov dword [ebp - 0x49c], 0
jne 0x48edf9
mov eax, dword [edi + 0xc]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x138]
push eax
call fcn.00451610
push 0
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x4a4]
push eax
lea ecx, [ebp - 0x498]
call fcn.0045c980
test al, al
jne 0x48ee39
mov bl, 1
jmp 0x48ee71
lea eax, [ebp - 0x4a8]
mov dword [ebp - 0x4a8], 0
push eax
push dword [ebp - 0x494]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48ee69
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48ee69
xor esi, esi
mov dword [ebp - 0x140], esi
xor bl, bl
mov byte [ebp - 4], 1
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x138], vtable.t_str.0
jne 0x48ee9e
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x48ee9e
push eax
call fcn.004e1b56
add esp, 4
test bl, bl
jne 0x48eecf
push 4
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x4a4]
push eax
lea ecx, [ebp - 0x144]
call fcn.00469aa0
mov eax, dword [ebp - 0x49c]
cmp eax, dword [edi + 0x12c]
jne 0x48eecf
mov bl, 1
jmp 0x48eed1
xor bl, bl
lea ecx, [ebp - 0x4a4]
call fcn.00450c20
lea ecx, [ebp - 0x498]
mov dword [ebp - method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [ebp - method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.0045c8c0
mov al, bl
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.004d6cfd
mov esp, ebp
pop ebp
ret