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

Disassembly:
push 0x2c4
mov eax, 0x596d98
call fcn.0055a891
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.0046fe19
call fcn.00459646
push eax
lea ecx, [ebp - 0x94]
call fcn.00457088
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0045964c
mov ecx, eax
call fcn.004578ed
test al, al
je 0x46fb9c
push ebx
lea ecx, [ebp - 0x94]
call fcn.0045738a
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00457790
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x46fb0d
push str.Error_opening_file
jmp 0x46fc7d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x46fc16
cmp edi, 0x400000
ja 0x46fc27
and dword [ebp - 0x2c8], 0
push edi
call fcn.00541c5a
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 0x46fb85
push ebx
call fcn.00558911
pop ecx
mov ecx, esi
call fcn.0046fe19
push 0
push str.Could_not_read_file
jmp 0x46fc7d
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.0046fccc
push dword [ebp - 0x2cc]
jmp 0x46fcab
call fcn.0045964c
push eax
lea ecx, [ebp - 0x94]
call fcn.00457305
call fcn.0045980e
test al, al
je 0x46fbbd
call fcn.00459652
jmp 0x46fbd4
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00457790
push eax
call fcn.0046c27a
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x46fbe5
push eax
push str.Error_opening_zip_file
jmp 0x46fc7d
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0046bbd2
add esp, 0x14
test eax, eax
je 0x46fc0c
push 0
push str.Could_not_find_ziped_file
jmp 0x46fc7d
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x46fc1f
push 0
push str.File_is_empty
jmp 0x46fc7d
cmp ebx, 0x400000
jbe 0x46fc30
push 0
push 0x5a3d30
jmp 0x46fc7d
push ebx
call fcn.00541c5a
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.0046c62f
add esp, 0x18
test eax, eax
je 0x46fc88
cmp eax, 0x600
je 0x46fc88
push dword [ebp - 0x2c8]
call fcn.00558911
pop ecx
call fcn.0045980e
test al, al
jne 0x46fc76
push edi
call fcn.0046ba34
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0046fe41
mov bl, al
jmp 0x46fcb3
call fcn.0045980e
test al, al
jne 0x46fc98
push edi
call fcn.0046ba34
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.0046fccc
push edi
mov bl, al
call fcn.00558911
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00457170
mov al, bl
call fcn.0055a840
ret 8
Function at 0x47cfb5
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 0x47cfd9
cmp dword [esi + 8], edi
jge 0x47cfd1
push esi
call fcn.004793bd
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 0x47cfff
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 0x47cfe5
mov dword [esi + 8], edx
jmp 0x47d014
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x47d00a
xor dl, dl
jmp 0x47d00f
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x47cfff
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 0x47d04e
push str.zlib_corrupt
call fcn.004792e6
add esp, 4
jmp 0x47d08e
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x47d05e
push str.read_past_buffer
jmp 0x47d044
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x47d078
push edi
push ecx
push esi
call fcn.0047fb1c
add esp, 0xc
test eax, eax
je 0x47d08e
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00557660
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 0x490284
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x597917
call fcn.0055a891
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 0x490316
lea eax, [ebp - 0xa8]
push eax
call fcn.0048fef1
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.00436310
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00456851
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00474cf5
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.004591d7
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.004578ed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.00457170
mov esi, 0x6d8
test bl, bl
je 0x490355
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.0055a840
ret 4

Function at 0x49038b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x611e60]
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.0045e801
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x490407
lea eax, [ebp - 0x14]
push eax
call fcn.0048fef1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x6f0]
test eax, eax
je 0x4903e3
push 0
call fcn.00436340
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x490407
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.00436340
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005571f4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4904ef
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x611e60]
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.0045fd92
mov ecx, dword [ebx + 0x6f0]
test ecx, ecx
je 0x490573
lea eax, [ebp - 0x14]
push eax
call fcn.0048fef1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6f0]
test eax, eax
je 0x49054f
push 0
call fcn.00436340
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x490573
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.00436340
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.005571f4
mov esp, ebp
pop ebp
ret 0x14
Function at 0x49339a
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x597af2
call fcn.0055a891
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2d0], ebx
call fcn.00459646
push eax
lea ecx, [ebp - 0x94]
call fcn.00457088
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0045964c
mov ecx, eax
call fcn.004578ed
test al, al
je 0x493491
push ebx
lea ecx, [ebp - 0x94]
call fcn.0045738a
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00457790
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49342b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00457170
jmp 0x493572
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x493442
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x493417
push esi
mov dword [ebp - 0x2cc], edi
call fcn.00541c5a
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 0x49355d
push edi
call fcn.00558911
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00457170
jmp 0x493570
call fcn.0045964c
push eax
lea ecx, [ebp - 0x94]
call fcn.00457305
call fcn.0045980e
test al, al
je 0x4934b2
call fcn.00459652
jmp 0x4934c9
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00457790
push eax
call fcn.0046c27a
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x493417
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2d0]
push ebx
call fcn.0046bbd2
add esp, 0x14
test eax, eax
jne 0x493417
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x493417
push esi
call fcn.00541c5a
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.0046c62f
add esp, 0x18
test eax, eax
je 0x49354d
cmp eax, 0x600
je 0x49354d
push edi
call fcn.00558911
pop ecx
call fcn.0045980e
test al, al
jne 0x49347d
push ebx
call fcn.0046ba34
jmp 0x49347c
call fcn.0045980e
test al, al
jne 0x49355d
push ebx
call fcn.0046ba34
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00457170
test edi, edi
jne 0x4935ed
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 0x4935e9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4935ac
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4935e9
push esi
mov dword [ebp - 0x2c8], edi
call fcn.00541c5a
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 0x4935e5
push edi
call fcn.00558911
pop ecx
xor edi, edi
test edi, edi
jne 0x4935ed
xor eax, eax
jmp 0x493605
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0049360d
push edi
mov esi, eax
call fcn.00558911
pop ecx
mov eax, esi
call fcn.0055a840
ret 4
Function at 0x493d10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x611e60]
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 [0x6184a9], 0
mov esi, dword [ebp + 0xc]
je 0x493d87
cmp dword [esi + 0x14], 0x10
jb 0x493d50
mov eax, dword [esi]
jmp 0x493d52
mov eax, esi
push eax
lea eax, [ebp - 0x28]
push str._log___s_n
push eax
call fcn.00494ae0
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 0x493d87
push dword [ebp - 0x28]
call fcn.00556a60
add esp, 4
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004944d0
add esp, 8
mov eax, dword [0x6184b4]
mov dword [ebp - 4], 0
test eax, eax
jne 0x493dcc
push 0x18
call fcn.00556a0f
add esp, 4
mov dword [0x6184b4], 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 [0x6184b4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.004a09e0
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jne 0x493df3
push eax
push eax
call fcn.00493970
add esp, 8
push dword [0x6184b4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004a09e0
cmp dword [esi + 0x10], 0
mov edi, eax
je case.default.0x493e21
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.0x493e21
cmp ecx, 3
ja case.default.0x493e21
jmp dword [ecx*4 + 0x493e7c]
push esi
mov ecx, edi
call fcn.004a04b0
jmp case.default.0x493e21
push esi
mov ecx, edi
call fcn.004a0ab0
jmp case.default.0x493e21
push esi
mov ecx, edi
call fcn.004a0f80
jmp case.default.0x493e21
push esi
mov ecx, edi
call fcn.004a07f0
cmp dword [ebp - 0x2c], 0x10
jb 0x493e5f
push dword [ebp - 0x40]
call fcn.00556a60
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.005571f4
mov esp, ebp
pop ebp
ret
Function at 0x4948d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x611e60]
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.00495450
add esp, 4
cmp dword [ebp + 0x18], 0
jle 0x494aab
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.004220c0
call fcn.00494d10
add esp, 0x18
test al, al
je 0x49494f
mov bl, 1
jmp 0x494aad
call fcn.00495080
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043d610
mov esi, eax
add esp, 0xc
lea eax, [ebp + 8]
cmp eax, esi
je 0x49499c
cmp dword [ebp + 0x1c], 8
jb 0x49497f
push dword [ebp + 8]
call fcn.00556a60
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.00421f00
cmp dword [ebp - 0x14], 8
jb 0x4949ad
push dword [ebp - 0x28]
call fcn.00556a60
add esp, 4
lea eax, [ebp + 8]
push eax
call fcn.00494f20
mov ecx, dword [ebp + 0x18]
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
cmp ecx, esi
jbe 0x494a5d
cmp ecx, esi
jbe 0x494aa1
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
jne 0x494a54
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.004238a0
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.004220c0
call fcn.00494d10
add esp, 0x18
test al, al
jne 0x494a3c
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 0x494a51
push dword [ebp - 0x28]
call fcn.00556a60
add esp, 4
mov ecx, dword [ebp + 0x18]
inc esi
cmp ecx, esi
ja 0x4949d7
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.004220c0
call fcn.00494d10
add esp, 0x18
test al, al
je 0x494aab
mov bl, 1
jmp 0x494aad
push str.invalid_string_position
call fcn.00541b8a
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x494abe
push dword [ebp + 8]
call fcn.00556a60
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.005571f4
mov esp, ebp
pop ebp
ret
Function at 0x494d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597d38
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x611e60]
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.00494f20
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 0x494d6e
push dword [ebp + 8]
call fcn.00556a60
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 0x4a3f60
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598f79
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x611e60]
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.00422850
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.00422850
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.00422850
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.004a63d0
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.004a6210
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 0x4a5cf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x6185b8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4a5d44
push esi
push 0x10
call fcn.00556a0f
add esp, 4
test eax, eax
je 0x4a5d1a
mov ecx, eax
call fcn.004a5500
mov esi, eax
jmp 0x4a5d1c
xor esi, esi
push dword [0x6185b8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a5d34
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x6185b8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
Function at 0x4b6860
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.00558cc0
mov eax, dword [0x611e60]
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 0x4b68c6
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.004cd090
add esp, 0xc
cmp edi, 0x40
jbe 0x4b68e2
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.004cd090
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 0x4b6909
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.00558cf0
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x4b69ff
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 0x4b6980
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
xor edx, edx
test edi, edi
je 0x4b6a3a
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 0x4b6a10
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005571f4
add esp, 0xa8
ret
Function at 0x4b7520
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00558cc0
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 0x4b7568
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
lea eax, [ecx + ebp]
cmp eax, edx
jbe 0x4b755b
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 0x4b756d
cmp ebp, dword [esi + 4]
ja 0x4b7554
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x4b75c0
cmp dword [edi + 0x88], 0
jne 0x4b75c0
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x5af090
push eax
call fcn.004ccc90
add esp, 0xc
test eax, eax
jne 0x4b75b3
test bl, 1
jne 0x4b75b3
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x4b75c0
test ebx, ebx
je 0x4b75c0
dec ebx
mov eax, dword [edi + 0x80]
push dword [eax]
call fcn.004d5300
add esp, 4
test eax, 0x200000
je 0x4b75ea
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 0x4b766d
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 0x4b7630
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