joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7850
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc61468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x4b7877
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x4b7877
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x4b7880
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc61468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4
Function at 0x4cc840
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x4cc9ef
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4cc9ef
push esi
mov esi, dword [esp + 0x24]
push edi
test esi, esi
je 0x4cc876
mov eax, dword [esi + 4]
test eax, eax
je 0x4cc886
push dword [esi]
push 0x18
call eax
add esp, 8
jmp 0x4cc880
push 0x18
call fcn.004fd33b
add esp, 4
mov edi, eax
test edi, edi
jne 0x4cc890
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
ret
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
lea eax, [edi + 8]
mov dword [edi], ebx
test eax, eax
je 0x4cc8f0
test esi, esi
je 0x4cc8d5
cmp dword [esi], 0
jne 0x4cc8bb
cmp dword [esi + 0xc], 0
jne 0x4cc8c1
cmp dword [esi + 4], 0
jne 0x4cc8bb
cmp dword [esi + 8], 0
je 0x4cc8d5
cmp dword [esi + 0xc], 0
je 0x4cc8f0
cmp dword [esi + 4], 0
jne 0x4cc8cd
cmp dword [esi + 8], 0
je 0x4cc8f0
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
jmp 0x4cc8f0
mov dword [eax], 0
mov dword [eax + 4], 0x4cc5e0
mov dword [eax + 8], 0x4cc5f0
mov dword [eax + 0xc], 0x4cc610
lea eax, [esp + 0x14]
push eax
push 0
push edi
push 0x4cc800
push dword [esp + 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [ebp], ecx
test ecx, ecx
jne 0x4cc955
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004cc6f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4cc9e8
test esi, esi
je 0x4cc945
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4cc94e
push dword [esi]
push edi
call ecx
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.004ee89b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
mov eax, dword [esp + 0x18]
add eax, 5
cmp eax, 6
ja case.0x4cc961.2
jmp dword [eax*4 + 0x4cc9f8]
mov eax, 0xfffffff1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
or eax, 0xffffffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xf
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x4e28a0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
call fcn.004c5c70
mov ebx, dword [esp + 0xc]
lea eax, [esp + 4]
push ebx
push eax
mov dword [esp + 0xc], 0xc61f3c
call fcn.004c5c80
add esp, 8
test eax, eax
jne 0x4e296a
push esi
push edi
push 0x20000
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x48], eax
call fcn.004fd33b
push 0x20000
mov dword [ebx + 0x38], eax
call fcn.004fd33b
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x20]
push esi
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x28]
push 0x20000
push dword [ebx + 0x38]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x50], 1
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x64], edi
mov dword [ebx + 0x68], esi
call edi
push esi
push 0x20000
push dword [ebx + 0x3c]
mov dword [ebx + 0x40], eax
call edi
add esp, 0x20
mov dword [ebx + 0x44], eax
lea eax, [esp + 0x14]
push eax
push 0
push ebx
push 0x4e29b0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
test eax, eax
je 0x4e296a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x60], 1
mov eax, 1
pop ebx
pop ecx
ret
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x4e6bc0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4e6be0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4e6be0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4e6be0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4ecdbe
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0xc63efc], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0051dfd9
mov dword [esi + 0x58], 0x4edfec
mov eax, esi
mov dword [esi + 0x5c], 0x4ee038
mov dword [esi + 0x10], fcn.004ecf25
mov dword [esi + 0x30], 0x4ed0b1
mov dword [esi + 0x64], 0x4ed2c8
mov dword [esi + 0x60], 0x4ed320
mov dword [esi + 0x34], 0x4ed95a
mov dword [esi + 0x24], 0x4ed80c
mov dword [esi + 0x28], 0x4ed835
mov dword [esi + 0x2c], 0x4ed860
mov dword [esi + 0x44], 0x4edde1
mov dword [esi + 0x68], 0x4eceb0
mov dword [esi + 0x6c], 0x4ecf0f
pop esi
ret 4
Function at 0x4ef4c4
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4ef55a
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4ef557
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4ef557
lea eax, [esi - 1]
push eax
push dword [0xc63da4]
call fcn.0048ab41
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4ef559
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4ef547
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4ef552
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4ef537
jmp 0x4ef557
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4ef600
push eax
call esi
test al, al
jns 0x4ef600
push 0x11
call esi
test al, al
js 0x4ef600
push 0x10
call esi
test al, al
js 0x4ef600
push 0x12
call esi
test al, al
js 0x4ef600
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4ef600
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004f88e8
add esp, 0xc
test eax, eax
je 0x4ef5d4
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004f88e8
add esp, 0xc
test eax, eax
jne 0x4ef5eb
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4ef641
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004ae084
pop ecx
pop ecx
test eax, eax
je 0x4ef641
test ebp, ebp
je 0x4ef624
push 0x11
call esi
test al, al
js 0x4ef61c
push 0x10
call esi
test al, al
js 0x4ef61c
push 0x12
call esi
test al, al
jns 0x4ef624
push 1
push ebp
call fcn.004ef765
test ebx, ebx
je 0x4ef638
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4ef641
test edi, edi
je 0x4ef641
mov eax, dword [edi + 8]
jmp 0x4ef643
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4efa30
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x4efa52
push ebx
call fcn.004822b0
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
sub ecx, ebp
add ecx, dword [ebx + 0x10]
cmp ebp, esi
jl 0x4eface
mov eax, esi
sub eax, 1
je 0x4efaba
sub eax, 1
je 0x4efaa4
sub eax, 2
je 0x4efa90
push esi
push ecx
push dword [esp + 0x20]
call fcn.004adb10
add esp, 0xc
mov eax, esi
sub dword [ebx + 0xc], esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx]
pop edi
mov dword [eax], ecx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov cx, word [ecx]
pop edi
mov word [eax], cx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov dl, byte [ecx]
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [ecx], dl
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
push ecx
push eax
call fcn.004adb10
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, ebp
mov ecx, dword [ebx]
sub esi, ebp
mov dword [esp + 0x18], eax
push 0
cmp esi, edx
jl 0x4efb16
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add eax, ebp
mov dword [ebx + 0xc], 0
pop ebp
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jle 0x4efb36
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.004adb10
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4efb60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0xc62924]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4efcf0
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x4efbae
test ebp, ebp
je 0x4efc56
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x4efbca
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004efa30
mov dword [esp + 0x10], eax
jmp 0x4efbe4
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x4efc59
test cl, cl
je 0x4efbf8
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4efc33
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0xc62924]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x4efc56
cmp dword [esp + 0x28], 0
jne 0x4efba0
cmp cl, 0xd
je 0x4efc62
cmp cl, 0xa
jne 0x4efba0
dec esi
jmp 0x4efcd3
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x4efcd3
jmp 0x4efc65
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x4efc6d
dec esi
jmp 0x4efcd3
cmp cl, 0xd
jne 0x4efcd3
dec esi
cmp dword [edi], 0
je 0x4efc8b
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004efa30
mov dword [esp + 0x10], eax
jmp 0x4efca1
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x4efcd3
cmp dword [edi], 0
je 0x4efcb2
inc dword [ebx + 0xc]
jmp 0x4efcd3
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x4efd00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x4efebf
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x4efd59
test ecx, ecx
je 0x4efe1c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x4efd75
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004efa30
mov dword [esp + 0x10], eax
jmp 0x4efd8f
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x4efe1f
test ax, ax
je 0x4efdad
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x4efdf4
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0xc62924]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x4efe1f
cmp dword [esp + 0x2c], 0
jne 0x4efd43
cmp ax, 0xd
je 0x4efe26
cmp ax, 0xa
jne 0x4efd43
sub edi, 2
jmp 0x4efe9e
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x4efe9e
cmp ax, 0xa
jne 0x4efe31
sub edi, 2
jmp 0x4efe9e
cmp ax, 0xd
jne 0x4efe9e
sub edi, 2
cmp dword [ebp], 0
je 0x4efe53
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004efa30
mov dword [esp + 0x10], eax
jmp 0x4efe69
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x4efe9e
cmp dword [ebp], 0
je 0x4efe7d
add dword [ebx + 0xc], 2
jmp 0x4efe9e
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x4efed0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0xc62924]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x4f0020
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x4eff1c
test edi, edi
je 0x4eff8d
dec edi
push esi
push ebp
call fcn.00525060
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4eff2f
xor cl, cl
jmp 0x4eff31
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x4eff74
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0xc62924]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x4eff8d
test eax, eax
jne 0x4eff12
cmp cl, 0xd
je 0x4eff91
cmp cl, 0xa
jne 0x4eff12
dec esi
jmp 0x4f0003
test eax, eax
jne 0x4f0003
cmp cl, 0xa
jne 0x4eff99
dec esi
jmp 0x4f0003
cmp cl, 0xd
jne 0x4f0003
dec esi
cmp dword [ebp + 4], 0
je 0x4effb8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.004efa30
mov dword [esp + 0x20], eax
jmp 0x4effcf
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x4f0003
cmp dword [ebp + 4], 0
je 0x4effe1
inc dword [ebp + 0xc]
jmp 0x4f0003
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x4f0030
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x4f0147
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x4f007d
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x4f0106
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x4f00ef
sub eax, 1
je 0x4f00d6
sub eax, 2
je 0x4f00bf
push esi
push dword [esp + 0x24]
push ecx
call fcn.004adb10
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.004822b0
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x4f0135
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x4f00a7
xor eax, eax
pop edi
add esp, 8
ret 0xc

Function at 0x4f0ecf
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
push 0x20
pop ecx
push ecx
and dword [eax + 0x40], 0
and dword [eax + 0x44], 0
mov dword [eax + 0x68], ecx
add eax, 0x48
push 0x556ec0
push eax
call fcn.004adb10
add esp, 0xc
ret
Function at 0x4f2763
Capabilities:
Hash data using sha384

Disassembly:
mov eax, dword [esp + 4]
push 0x40
push 0x5571c0
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], 0x30
add eax, 0x88
push eax
call fcn.004adb10
add esp, 0xc
ret

Function at 0x4f2795
Capabilities:
Hash data using sha512

Disassembly:
mov eax, dword [esp + 4]
push 0x40
pop ecx
push ecx
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], ecx
add eax, 0x88
push 0x557180
push eax
call fcn.004adb10
add esp, 0xc
ret
Function at 0x4f5ed9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
jne 0x4f5eea
mov eax, dword [esp + 0xc]
jmp 0x4f5fcc
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
not ecx
cmp esi, 8
jb 0x4f5fab
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x571bd0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x571bd0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x571bd0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x571bd0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x571bd0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x571bd0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x571bd0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x571bd0]
sub edi, 1
jne 0x4f5f04
pop edi
test esi, esi
je 0x4f5fc7
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x571bd0]
inc edx
sub esi, 1
jne 0x4f5faf
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x4f6040
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x94
test dword [esp + 0xa0], 0x10000
je 0x4f61d2
push ebx
mov ebx, dword [esp + 0x9c]
test ebx, ebx
je 0x4f61d1
mov eax, dword [ebx]
cdq
push ebp
mov ebp, dword [ebx + 4]
and edx, 7
push esi
add eax, edx
push edi
mov edi, dword [esp + 0xb4]
sar eax, 3
mov dword [esp + 0x10], eax
test edi, edi
jne 0x4f608c
mov edi, 0x581684
mov eax, dword [esp + 0xb8]
cmp eax, 0x18
jne 0x4f60b0
push edi
call fcn.004afce0
mov edi, eax
mov esi, edi
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4f60a5
sub esi, eax
jmp 0x4f60e9
cmp eax, 0x19
jne 0x4f60d3
mov esi, edi
lea ecx, [esi + 2]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f60c0
sub esi, ecx
sar esi, 1
add esi, esi
jmp 0x4f60e9
push edi
call fcn.00494360
mov edi, eax
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4f60e0
sub esi, ecx
push esi
push edi
cmp esi, ebp
jle 0x4f613c
mov esi, dword [esp + 0xb4]
push ebx
mov eax, dword [esi + 0xc]
call eax
mov eax, dword [esi + 0x10]
push ebx
call eax
mov esi, dword [esp + 0x10]
lea eax, [ebx + 8]
push esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004adb10
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x24]
add eax, esi
push 0
push eax
call fcn.00494030
mov eax, dword [esp + 0xc4]
add esp, 0x18
mov eax, dword [eax + 8]
push 1
push ebx
call eax
jmp 0x4f615c
lea eax, [esp + 0x1c]
push eax
call fcn.004adb10
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x24]
add eax, esi
push 0
push eax
call fcn.00494030
add esp, 0x18
push ebp
lea eax, [esp + 0x18]
push eax
lea esi, [ebx + 0x48]
push esi
call fcn.004adb10
add esp, 0xc
test ebp, ebp
jle 0x4f6191
lea eax, [esp + 0x14]
mov ecx, ebp
jmp 0x4f6180
xor byte [eax], 0x36
lea eax, [eax + 1]
xor byte [esi], 0x5c
lea esi, [esi + 1]
sub ecx, 1
jne 0x4f6180
push ebp
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xb4]
push ebx
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [esp + 0xb8]
cmp eax, 0x18
jne 0x4f61c3
push edi
call fcn.004943f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14
cmp eax, 0x19
je 0x4f61ce
push edi
call fcn.004943f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14