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

Disassembly:
push 0x2c4
mov eax, 0x5951c4
call fcn.00558f31
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.0047224f
call fcn.0045ba86
push eax
lea ecx, [ebp - 0x94]
call fcn.004594c8
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0045ba8c
mov ecx, eax
call fcn.00459d2d
test al, al
je 0x471fd2
push ebx
lea ecx, [ebp - 0x94]
call fcn.004597ba
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00459bd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x471f43
push str.Error_opening_file
jmp 0x4720b3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x47204c
cmp edi, 0x400000
ja 0x47205d
and dword [ebp - 0x2c8], 0
push edi
call fcn.005403e7
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x471fbb
push ebx
call fcn.00556fb1
pop ecx
mov ecx, esi
call fcn.0047224f
push 0
push str.Could_not_read_file
jmp 0x4720b3
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00472102
push dword [ebp - 0x2cc]
jmp 0x4720e1
call fcn.0045ba8c
push eax
lea ecx, [ebp - 0x94]
call fcn.00459735
call fcn.0045bc4e
test al, al
je 0x471ff3
call fcn.0045ba92
jmp 0x47200a
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00459bd0
push eax
call fcn.0046e6b0
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x47201b
push eax
push str.Error_opening_zip_file
jmp 0x4720b3
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0046e008
add esp, 0x14
test eax, eax
je 0x472042
push 0
push str.Could_not_find_ziped_file
jmp 0x4720b3
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x472055
push 0
push str.File_is_empty
jmp 0x4720b3
cmp ebx, 0x400000
jbe 0x472066
push 0
push 0x5a1d20
jmp 0x4720b3
push ebx
call fcn.005403e7
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.0046ea65
add esp, 0x18
test eax, eax
je 0x4720be
cmp eax, 0x600
je 0x4720be
push dword [ebp - 0x2c8]
call fcn.00556fb1
pop ecx
call fcn.0045bc4e
test al, al
jne 0x4720ac
push edi
call fcn.0046de6a
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00472277
mov bl, al
jmp 0x4720e9
call fcn.0045bc4e
test al, al
jne 0x4720ce
push edi
call fcn.0046de6a
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.00472102
push edi
mov bl, al
call fcn.00556fb1
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004595b0
mov al, bl
call fcn.00558ee0
ret 8
Function at 0x47f376
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x47f39a
cmp dword [esi + 8], edi
jge 0x47f392
push esi
call fcn.0047b77e
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x47f3c0
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x47f3a6
mov dword [esi + 8], edx
jmp 0x47f3d5
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x47f3cb
xor dl, dl
jmp 0x47f3d0
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x47f3c0
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x47f40f
push str.zlib_corrupt
call fcn.0047b6a7
add esp, 4
jmp 0x47f44f
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x47f41f
push str.read_past_buffer
jmp 0x47f405
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x47f439
push edi
push ecx
push esi
call fcn.00481edd
add esp, 0xc
test eax, eax
je 0x47f44f
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00555d00
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4926cc
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x594eef
call fcn.00558f31
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x6e8], ebx
cmp dword [edi + 4], ebx
jne 0x49275e
lea eax, [ebp - 0xa8]
push eax
call fcn.00492339
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
mov ecx, eax
call fcn.0043a370
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00458c91
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00477143
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.0045b617
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00459d2d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004595b0
mov esi, 0x6d8
test bl, bl
je 0x49279d
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
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
call fcn.00558ee0
ret 4

Function at 0x4927d3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x60fe70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00460c38
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x49284f
lea eax, [ebp - 0x14]
push eax
call fcn.00492339
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x6f0]
test eax, eax
je 0x49282b
push 0
call fcn.0043a3a0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49284f
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.0043a3a0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00555894
mov esp, ebp
pop ebp
ret 0xc
Function at 0x492937
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x60fe70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004621c9
mov ecx, dword [ebx + 0x6f0]
test ecx, ecx
je 0x4929bb
lea eax, [ebp - 0x14]
push eax
call fcn.00492339
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6f0]
test eax, eax
je 0x492997
push 0
call fcn.0043a3a0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4929bb
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.0043a3a0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00555894
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4957d6
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x595ec8
call fcn.00558f31
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2d0], ebx
call fcn.0045ba86
push eax
lea ecx, [ebp - 0x94]
call fcn.004594c8
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0045ba8c
mov ecx, eax
call fcn.00459d2d
test al, al
je 0x4958cd
push ebx
lea ecx, [ebp - 0x94]
call fcn.004597ba
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00459bd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x495867
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004595b0
jmp 0x4959ae
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x49587e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x495853
push esi
mov dword [ebp - 0x2cc], edi
call fcn.005403e7
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2cc]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x495999
push edi
call fcn.00556fb1
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004595b0
jmp 0x4959ac
call fcn.0045ba8c
push eax
lea ecx, [ebp - 0x94]
call fcn.00459735
call fcn.0045bc4e
test al, al
je 0x4958ee
call fcn.0045ba92
jmp 0x495905
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00459bd0
push eax
call fcn.0046e6b0
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x495853
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2d0]
push ebx
call fcn.0046e008
add esp, 0x14
test eax, eax
jne 0x495853
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x495853
push esi
call fcn.005403e7
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.0046ea65
add esp, 0x18
test eax, eax
je 0x495989
cmp eax, 0x600
je 0x495989
push edi
call fcn.00556fb1
pop ecx
call fcn.0045bc4e
test al, al
jne 0x4958b9
push ebx
call fcn.0046de6a
jmp 0x4958b8
call fcn.0045bc4e
test al, al
jne 0x495999
push ebx
call fcn.0046de6a
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004595b0
test edi, edi
jne 0x495a29
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x495a25
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4959e8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x495a25
push esi
mov dword [ebp - 0x2c8], edi
call fcn.005403e7
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x495a21
push edi
call fcn.00556fb1
pop ecx
xor edi, edi
test edi, edi
jne 0x495a29
xor eax, eax
jmp 0x495a41
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00495a49
push edi
mov esi, eax
call fcn.00556fb1
pop ecx
mov eax, esi
call fcn.00558ee0
ret 4
Function at 0x496140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x60fe70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x616289], 0
mov esi, dword [ebp + 0xc]
je 0x4961b7
cmp dword [esi + 0x14], 0x10
jb 0x496180
mov eax, dword [esi]
jmp 0x496182
mov eax, esi
push eax
lea eax, [ebp - 0x28]
push str._log___s_n
push eax
call fcn.00496e20
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], 0x10
jb 0x4961b7
push dword [ebp - 0x28]
call fcn.00481ffe
add esp, 4
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00496810
add esp, 8
mov eax, dword [0x616294]
mov dword [ebp - 4], 0
test eax, eax
jne 0x4961fc
push 0x18
call fcn.005550bb
add esp, 4
mov dword [0x616294], eax
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x616294]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0049ef00
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jne 0x496223
push eax
push eax
call fcn.00495da0
add esp, 8
push dword [0x616294]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0049ef00
cmp dword [esi + 0x10], 0
mov edi, eax
je case.default.0x496251
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0xc]
call edx
mov ecx, dword [ebp + 8]
cmp ecx, eax
jg case.default.0x496251
cmp ecx, 3
ja case.default.0x496251
jmp dword [ecx*4 + 0x4962ac]
push esi
mov ecx, edi
call fcn.0049e9d0
jmp case.default.0x496251
push esi
mov ecx, edi
call fcn.0049efd0
jmp case.default.0x496251
push esi
mov ecx, edi
call fcn.0049f4a0
jmp case.default.0x496251
push esi
mov ecx, edi
call fcn.0049ed10
cmp dword [ebp - 0x2c], 0x10
jb 0x49628f
push dword [ebp - 0x40]
call fcn.00481ffe
add esp, 4
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.00555894
mov esp, ebp
pop ebp
ret
Function at 0x496c10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5960d0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x60fe70]
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
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.00497790
add esp, 4
cmp dword [ebp + 0x18], 0
jle 0x496deb
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00421c60
call fcn.00497050
add esp, 0x18
test al, al
je 0x496c8f
mov bl, 1
jmp 0x496ded
call fcn.004973c0
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00440830
mov esi, eax
add esp, 0xc
lea eax, [ebp + 8]
cmp eax, esi
je 0x496cdc
cmp dword [ebp + 0x1c], 8
jb 0x496cbf
push dword [ebp + 8]
call fcn.00481ffe
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00421aa0
cmp dword [ebp - 0x14], 8
jb 0x496ced
push dword [ebp - 0x28]
call fcn.00481ffe
add esp, 4
lea eax, [ebp + 8]
push eax
call fcn.00497260
mov ecx, dword [ebp + 0x18]
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
cmp ecx, esi
jbe 0x496d9d
cmp ecx, esi
jbe 0x496de1
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
jne 0x496d94
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.00423440
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00421c60
call fcn.00497050
add esp, 0x18
test al, al
jne 0x496d7c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x496d91
push dword [ebp - 0x28]
call fcn.00481ffe
add esp, 4
mov ecx, dword [ebp + 0x18]
inc esi
cmp ecx, esi
ja 0x496d17
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call edi
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00421c60
call fcn.00497050
add esp, 0x18
test al, al
je 0x496deb
mov bl, 1
jmp 0x496ded
push str.invalid_string_position
call fcn.00540345
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x496dfe
push dword [ebp + 8]
call fcn.00481ffe
add esp, 4
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.00555894
mov esp, ebp
pop ebp
ret
Function at 0x497050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596108
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x60fe70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.00497260
add esp, 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x4970ae
push dword [ebp + 8]
call fcn.00481ffe
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1f70
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5970a9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x60fe70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.004223f0
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.004223f0
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.004223f0
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.004a43d0
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.004a4220
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4a3d00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x616394]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4a3d54
push esi
push 0x10
call fcn.005550bb
add esp, 4
test eax, eax
je 0x4a3d2a
mov ecx, eax
call fcn.004a3510
mov esi, eax
jmp 0x4a3d2c
xor esi, esi
push dword [0x616394]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a3d44
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x616394]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
Function at 0x4c2d20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.00557360
mov eax, dword [0x60fe70]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb4]
push ebp
push esi
mov esi, dword [esp + 0xc4]
xor ebp, ebp
mov eax, dword [eax + 4]
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
sub eax, edi
mov dword [esp + 0x10], eax
cmp esi, edi
jae 0x4c2d86
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.004cb090
add esp, 0xc
cmp edi, 0x40
jbe 0x4c2da2
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.004cb090
add esp, 0xc
lea eax, [esp + 0x34]
neg eax
lea ebx, [esp + 0x34]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x1c], ebx
cmp esi, eax
jbe 0x4c2dc9
mov ebp, esi
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, dword [esp + 0x10]
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x30], esi
call fcn.00557390
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x4c2ebf
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ebx, dword [esp + 0x14]
mov esi, ebx
mov eax, dword [esp + 0xc0]
sub esi, ecx
shr edx, 0x1f
mov dword [esp + 0x28], edx
mov edx, ebx
shr edx, 0x1f
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], edx
mov edx, ebp
sub edx, ebx
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x20]
mov ecx, ebp
mov eax, dword [esp + 0x28]
inc ebp
shr ecx, 0x1f
lea ebx, [ebx + edx]
shr edx, 0x1f
xor dl, byte [esp + 0x14]
shr ebx, 0x1f
xor bl, al
xor al, cl
or bl, al
mov al, cl
xor al, byte [esp + 0x14]
xor bl, cl
or dl, al
dec bl
mov eax, dword [esp + 0x10]
xor dl, cl
mov ecx, dword [esp + 0x30]
dec dl
not dl
mov al, byte [ecx + eax]
mov ecx, dword [esp + 0x18]
and dl, al
and dl, bl
or byte [ecx + esi], dl
mov edx, ecx
inc edx
mov ecx, edx
mov eax, edx
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp ebp, dword [esp + 0xc8]
jb 0x4c2e40
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
xor edx, edx
test edi, edi
je 0x4c2efa
mov ebp, dword [esp + 0x2c]
lea esp, [esp]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x4c2ed0
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00555894
add esp, 0xa8
ret
Function at 0x4c39e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00557360
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
inc ebp
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x4c3a28
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
lea eax, [ecx + ebp]
cmp eax, edx
jbe 0x4c3a1b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edx, ecx
mov dword [esi + 4], edx
jmp 0x4c3a2d
cmp ebp, dword [esi + 4]
ja 0x4c3a14
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x4c3a80
cmp dword [edi + 0x88], 0
jne 0x4c3a80
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x5adac4
push eax
call fcn.004cac90
add esp, 0xc
test eax, eax
jne 0x4c3a73
test bl, 1
jne 0x4c3a73
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x4c3a80
test ebx, ebx
je 0x4c3a80
dec ebx
mov eax, dword [edi + 0x80]
push dword [eax]
call fcn.004e4650
add esp, 4
test eax, 0x200000
je 0x4c3aaa
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov edx, dword [esi + 4]
lea ecx, [ebx + ebp]
mov edi, edx
mov dword [esp + 0x10], edx
sub edi, ecx
mov eax, edx
xor edi, ecx
xor eax, ecx
or edi, eax
mov ecx, 0xff
xor edi, edx
lea eax, [edx - 1]
shr edi, 0x1f
dec edi
cmp eax, ecx
cmovb ecx, eax
xor ebp, ebp
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4c3b2d
mov eax, dword [esi + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea esi, [edx - 1]
mov dword [esp + 0x24], ecx
add esi, eax
mov edi, edi
mov al, byte [esp + 0x24]
lea esi, [esi - 1]
mov edx, ebx
mov ecx, ebp
sub edx, ebp
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc ebp
or dl, al
movzx eax, byte [esi + 1]
xor dl, byte [esp + 0x24]
xor eax, ebx
dec dl
movzx ecx, dl
and ecx, eax
not ecx
and edi, ecx
cmp ebp, dword [esp + 0x18]
jb 0x4c3af0
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
not edi
lea eax, [ebx + 1]
and edi, 0xff
pop ebx
lea ecx, [edi - 1]
not edi
shr ecx, 0x1f
shr edi, 0x1f
and ecx, edi
neg ecx
and eax, ecx
sub edx, eax
shl eax, 8
or dword [esi], eax
mov dword [esi + 4], edx
mov dword [esp + 0x20], ecx
not ecx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x20]
pop edi
and eax, 1
or eax, dword [esp + 0x10]
pop esi
pop ebp
pop ecx
ret