joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491760
Capabilities:
Create new key via cryptacquirecontext
Get common file path
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4f4008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x214]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x204]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x204]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x11
push eax
push 8
mov dword [ebp - 0x228], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
movups xmm0, xmmword [ebp - 0x214]
mov dword [ebp - 0x21c], eax
movups xmmword [eax], xmm0
lea eax, [ebp - 0x204]
push eax
call edi
mov edi, dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x204]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0049a220
add esp, 0xc
lea eax, [ebp - 0x224]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x49181d
mov edi, dword [ebp - 0x21c]
xor ebx, ebx
jmp 0x4918ca
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
test eax, eax
jne 0x491855
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, dword [ebp - 0x21c]
xor ebx, ebx
jmp 0x4918ca
push dword [ebp - 0x228]
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x220]
push 0
push eax
push 0
push 2
push dword [ebp - 0x218]
call edi
push dword [ebp - 0x220]
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov ebx, eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 2
push dword [ebp - 0x218]
call edi
push dword [ebp - 0x218]
mov edi, dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
jle 0x4918e0
mov ecx, ebx
sub ecx, esi
mov al, byte [ecx + esi]
lea esi, [esi + 1]
mov byte [esi - 1], al
sub edi, 1
jne 0x4918d2
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test ebx, ebx
je 0x4918f8
push ebx
push 0
call edi
push eax
call esi
push dword [ebp - 0x21c]
push 0
call edi
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495852
mov esp, ebp
pop ebp
ret
Function at 0x4919e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x491a91
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 8
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x491a55
lea eax, [ebp - 4]
push eax
push esi
call ebx
add esp, 8
mov esi, eax
test esi, esi
je 0x491a91
push 0x218
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], 0
mov dword [eax + 0x210], 0
mov dword [eax + 0x214], 0
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x491aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
test esi, esi
je 0x491b37
cmp dword [esi + 0x214], 1
push ebx
push edi
mov edi, dword [esi]
jne 0x491b11
mov eax, dword [esi + 0x210]
lea ebx, [esi + 4]
test eax, eax
je 0x491ad4
push ebx
push edi
call eax
add esp, 8
mov edi, eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x491b11
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebx]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
je 0x491b2d
push edi
push 0
call eax
push eax
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call eax
push eax
call ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x491c70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
lea eax, [esi + 0x14]
mov dword [ebp - 4], eax
je 0x491c8c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str.mfplat.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x491cb2
or eax, 0xffffffff
mov dword [0x5093f0], eax
jmp 0x491d68
push str.MFShutdown
push edi
call ebx
push str.MFCreateAsyncResult
push edi
mov dword [esi + 0x18], eax
call ebx
push str.MFStartup
push edi
mov dword [esi + 0x1c], eax
call ebx
push str.MFInvokeCallback
push edi
mov dword [esi + 0x20], eax
call ebx
push str.MFCreateAttributes
push edi
mov dword [esi + 0x24], eax
call ebx
push str.MFCreateMFByteStreamOnStream
push edi
mov dword [esi + 0x28], eax
call ebx
push str.mf.dll
mov dword [0x4fc114], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x491d1d
mov eax, dword [0x5093f0]
mov ecx, 0x62
test eax, eax
cmove eax, ecx
mov dword [0x5093f0], eax
jmp 0x491d68
push str.MFCreateTopologyNode
push edi
call ebx
push str.MFCreateMediaSession
push edi
mov dword [esi + 0x2c], eax
call ebx
push str.MFGetService
push edi
mov dword [0x4fc110], eax
call ebx
push str.MFCreateTopology
push edi
mov dword [0x4fc120], eax
call ebx
push str.MFCreateVideoRendererActivate
push edi
mov dword [esi + 0x30], eax
call ebx
push str.MFCreateAudioRendererActivate
push edi
mov dword [esi + 0x34], eax
call ebx
mov dword [esi + 0x38], eax
mov eax, dword [0x5093f0]
mov ecx, 0x20
add esi, ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x491d90
test eax, eax
mov ecx, 0x63
pop edi
cmove eax, ecx
pop ebx
mov dword [0x5093f0], eax
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x20070
call ecx
mov edi, eax
test edi, edi
jns 0x491df2
cmp edi, 0xc00d36e3
jne 0x491dd5
mov eax, dword [esi]
push 0
push 0x10070
call eax
mov edi, eax
test edi, edi
jns 0x491df2
mov eax, dword [0x5093f0]
mov ecx, 0x64
test eax, eax
cmove eax, ecx
mov dword [0x5093f0], eax
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5093f0]
mov ecx, 0x65
test eax, eax
cmove eax, ecx
mov dword [0x5093f0], eax
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], str.mfplat.dll
xor esi, esi
mov dword [ebp - 8], str.mf.dll
push dword [ebp + esi*4 - 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.MFCreateSourceResolver
push eax
call ebx
mov dword [0x4fc118], eax
test eax, eax
jne 0x491e2c
inc esi
cmp esi, 2
jl 0x491e02
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [eax], 1
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x491ea0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ecx + 4]
push esi
mov esi, dword [ebx + 4]
test esi, esi
je 0x49200c
mov eax, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
cmp edi, eax
je 0x491ece
mov ebx, esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x491eb7
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x491ee2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x491ef6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x10], 0
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x491f0a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x14], 0
mov ecx, dword [edi + 4]
lea eax, [edi + 0x20]
mov dword [ebp + 8], eax
test ecx, ecx
je 0x491f4a
mov dword [eax], 6
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
test eax, eax
js 0x491f6a
push 0x1388
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x491f44
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [edi + 0x20]
mov dword [ebp + 8], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x491f57
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x491f6a
mov eax, dword [ecx]
push ecx
call dword [eax + 0x34]
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x491f7e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 8], 0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x491f92
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x491faf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x38], 0
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x491fc3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x3c], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x491fd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 0
push 0x50
push edi
call fcn.00495890
mov eax, dword [esi + 4]
add esp, 8
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x492000
mov dword [eax + 0xc], 0
push 0x24
push esi
call fcn.00495890
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x493140
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x493156
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], ebx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x493166
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x10], ebx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x493176
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x14], ebx
mov ecx, dword [esi + 4]
push edi
lea edi, [esi + 0x20]
test ecx, ecx
je 0x4931b0
mov dword [edi], 6
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
mov ebx, eax
test ebx, ebx
js 0x4931ca
push 0x1388
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4931b0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4931bd
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4931ca
mov eax, dword [ecx]
push ecx
call dword [eax + 0x34]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4931de
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4931f2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 4], 0
mov dword [edi], 0
mov ecx, dword [esi + 0x38]
pop edi
test ecx, ecx
je 0x49320d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x493221
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x493236
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x493e50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x50937c]
cmp dword [eax + 0x14], 0
je 0x493e76
push esi
call fcn.00494130
pop esi
pop ebp
ret 8
cmp dword [eax + 0x18], 0
je 0x493e94
mov eax, dword [0x4fbf88]
mov ecx, dword [0x4fbf90]
push eax
push ecx
push esi
call fcn.00494320
pop esi
pop ebp
ret 8
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
push eax
push ecx
push esi
call fcn.00494320
pop esi
pop ebp
ret 8

Function at 0x493eb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push str.video
push edi
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
test ebx, ebx
je 0x493ee3
call fcn.00491b40
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [esi], 0
mov dword [esi + 4], 0
je 0x493efb
call fcn.004555c0
pop edi
mov dword [esi], 0
pop esi
pop ebx
pop ebp
ret 4
Function at 0x494a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
cmp edi, 8
jl 0x494aef
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 3]
shl edx, 8
or edx, eax
xor ecx, edx
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x4c5f00]
xor edx, dword [eax*4 + 0x4c5b00]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4c6300]
movzx eax, byte [esi + 6]
xor edx, dword [eax*4 + 0x4c4b00]
movzx eax, byte [esi + 5]
xor edx, dword [eax*4 + 0x4c4f00]
movzx eax, byte [esi + 7]
xor edx, dword [eax*4 + 0x4c4700]
movzx eax, byte [esi + 4]
add esi, 8
xor edx, dword [eax*4 + 0x4c5300]
movzx eax, cl
xor edx, dword [eax*4 + 0x4c5700]
mov ecx, edx
sub ebx, 1
jne 0x494a60
pop ebx
test edi, edi
je 0x494b0f
movzx eax, byte [esi]
lea esi, [esi + 1]
mov edx, ecx
shl ecx, 8
shr edx, 0x18
xor edx, eax
xor ecx, dword [edx*4 + 0x4c4700]
sub edi, 1
jne 0x494af3
pop edi
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4963ac
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4963eb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4963eb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4963eb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4963eb
cmp dword [ecx + 0x74], 0xe
jbe 0x4963eb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49bf75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a8420
mov eax, dword [0x4f4008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0049e36b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49bfb7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49c113
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004a7fc0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4fb998]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0049e676
mov ecx, dword [esi*4 + 0x4fb998]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x49c10c
cmp eax, dword [ecx + edi + 0x24]
jne 0x49c10c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49c10c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049e676
add esp, 0x14
test edx, edx
jl 0x49c10c
jg 0x49c082
test eax, eax
jb 0x49c10c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49c10c
jl 0x49c09c
cmp dword [ebp - 0x1008], eax
ja 0x49c10c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49c0ba
test ebx, ebx
je 0x49c0f3
cmp ecx, edi
jae 0x49c0f3
mov al, byte [ecx]
cmp al, 0xd
jne 0x49c0d4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49c0e0
cmp byte [ecx + 1], 0xa
jne 0x49c0e0
inc ecx
jmp 0x49c0e0
movzx eax, al
movsx eax, byte [eax + 0x4f5cd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49c0ba
cmp edx, ebx
jne 0x49c0ba
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49c111
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00495852
leave
ret
Function at 0x49ed1b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4fb998]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49ed5b
cmp byte [ebx], 0xa
jne 0x49ed5b
or byte [edi + eax + 0x28], 4
jmp 0x49ed60
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x49ee5f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49ee42
inc eax
cmp dl, 0xd
je 0x49ed8c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49edb2
cmp eax, ecx
jae 0x49edc0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49ed74
jmp 0x49ee5f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49ee3d
cmp dword [ebp - 0x10], 0
je 0x49ee3d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4fb998]
test byte [eax + edi + 0x28], 0x48
je 0x49ee17
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49ee02
mov byte [esi], dl
jmp 0x49ee13
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4fb998]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49ee5f
cmp byte [ebp - 1], 0xa
jne 0x49ee26
cmp esi, ebx
jne 0x49ee26
mov byte [esi], 0xa
jmp 0x49ee5e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049e694
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49ee5f
mov byte [esi], 0xd
jmp 0x49ee5e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4fb998]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49ee5c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49ee5f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49ee68
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4fb998]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49eeae
cmp word [ebx], dx
jne 0x49eeae
or byte [eax + edi + 0x28], 4
jmp 0x49eeb3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x49f016
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x49eff6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49eef4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49ef2a
cmp eax, edx
jae 0x49ef38
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49eecf
jmp 0x49f016
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49eff1
cmp dword [ebp - 0x18], 0
je 0x49eff1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4fb998]
test byte [eax + edi + 0x28], 0x48
je 0x49efc7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x49ef8b
mov word [esi], cx
jmp 0x49efc2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4fb998]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4fb998]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4fb998]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49f016
pop eax
cmp word [ebp - 4], ax
jne 0x49efd7
cmp esi, ebx
jne 0x49efd7
mov word [esi], ax
jmp 0x49f013
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0049e694
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49f016
push 0xd
pop eax
jmp 0x49efd2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4fb998]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49f010
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49f016
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a16a6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4a1743
push ebx
push esi
call fcn.004a166f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004a1603
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4a16f0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a1742
push edi
push eax
call fcn.004a015b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4a1710
call fcn.0049f88d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a1741
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004a1603
add esp, 0x20
test eax, eax
jne 0x4a172f
push edi
call fcn.0049f88d
jmp 0x4a1737
push ebx
call fcn.0049f88d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4a2504
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c1708
push 0x4c1700
push str.FlsAlloc
push 0x1f
call fcn.004a2420
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a2538
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bf41c]
call esi
jmp 0x4a253e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a2582
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c1718
push 0x4c1710
push str.FlsGetValue
push 0x21
call fcn.004a2420
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a25b9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bf41c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4a25c1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c1720
push 0x4c1718
push str.FlsSetValue
push 0x22
call fcn.004a2420
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a25fb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4bf41c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]