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

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.005a6630

Function at 0x5a6630
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x7f7520]
test esi, esi
jle 0x5a6723
mov edi, dword [0x7f7524]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x5a6664
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x5a671c
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x5a6650
mov dword [esp], eax
mov esi, eax
call fcn.005a6f20
test eax, eax
mov edi, eax
je 0x5a6760
mov esi, dword [0x7f7524]
lea ebx, [ebx + ebx*4]
shl ebx, 2
add esi, ebx
mov dword [esi + 0x10], eax
mov dword [esi], 0
call fcn.005a7030
add eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x7f7524]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x5a6740
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x5a6715
sub eax, 4
and eax, 0xfffffffb
je 0x5a6715
add ebx, dword [0x7f7524]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x5a672a
add dword [0x7f7520], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x5a666e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.005a65d0
mov eax, dword [0x7f7524]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.005a65d0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.005a65d0
Function at 0x5a6ba0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x7f7538
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x7f7530]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x5a6bf5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x5a6bee
test esi, esi
je 0x5a6bee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x5a6bd0
mov dword [esp], 0x7f7538
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x5a79f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x5a7a30
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x5a7a55
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x5a7dc0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x5a7df4
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x7f7554], eax
call fcn.005b87a0
test eax, eax
sete al
movzx eax, al
mov dword [0x66eff4], eax
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x5a7de3
Function at 0x5a7f20
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [edx]
test eax, eax
je 0x5a7fd4
nop
mov esi, dword [eax + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x2c]
call eax
test eax, eax
jne 0x5a8007
test esi, esi
je 0x5a7faf
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call esi
cmp eax, 7
je 0x5a800c
cmp eax, 8
jne 0x5a8007
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [0x66eff4]
test eax, eax
js 0x5a8035
test eax, eax
jne 0x5a8014
mov dword [0x7f7558], esi
mov eax, dword [ebx]
mov eax, dword [eax]
test eax, eax
mov dword [ebx], eax
jne 0x5a7f40
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0x1a
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], edx
call eax
test eax, eax
je 0x5a8044
mov eax, 2
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x7f7554]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x5a7fc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x5a7fc6
call fcn.005a7e00
mov eax, dword [0x66eff4]
jmp 0x5a7fbc
add esp, 0x3c
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x66eff4]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x5a80e0
test eax, eax
jne 0x5a8090
mov eax, dword [0x7f7558]
mov dword [0x7f7558], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x7f7554]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x7f7554]
sub esp, 4
mov dword [ebx], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x5a8085
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.005a7e00
mov eax, dword [0x66eff4]
jmp 0x5a8074
Function at 0x5a80f0
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x66eff4]
test eax, eax
js 0x5a8135
test eax, eax
jne 0x5a8112
mov dword [0x7f7558], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x7f7554]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x5a810d
add esp, 0x18
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.005a7e00
mov eax, dword [0x66eff4]
jmp 0x5a8103

Function at 0x5a8240
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x66eff4]
mov edi, dword [esp + 0x40]
test eax, eax
js 0x5a8330
test eax, eax
mov esi, dword [0x7f7558]
jne 0x5a8300
test esi, esi
mov dword [esp + 0x2c], esi
je 0x5a82e1
mov eax, esi
lea ebx, [esp + 0x2c]
jmp 0x5a8288
cmp eax, 8
jne 0x5a82f0
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x5a82e1
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x5a827a
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call ecx
cmp eax, 6
jne 0x5a8275
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], 0
mov edx, ebx
mov dword [esp + 0x2c], esi
mov dword [edi + 0x10], eax
mov eax, edi
call fcn.005a7d30
cmp eax, 7
je 0x5a833f
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add esp, 0x30
mov eax, 5
pop ebx
pop esi
pop edi
ret
add esp, 0x30
mov eax, 3
pop ebx
pop esi
pop edi
ret
mov esi, dword [0x7f7554]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x5a8265
call fcn.005a7e00
mov eax, dword [0x66eff4]
jmp 0x5a8257
mov eax, ebx
call fcn.005a7ea0
lea esi, [esi]
lea edi, [edi]
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x66eff4]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x5a83d0
test edx, edx
mov esi, dword [0x7f7558]
jne 0x5a83a0
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.005a7f20
cmp eax, 7
je 0x5a83dd
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov esi, dword [0x7f7554]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x5a836e
call fcn.005a7e00
mov edx, dword [0x66eff4]
jmp 0x5a8364
lea eax, [esp + 0x1c]
call fcn.005a7ea0
lea esi, [esi]
lea edi, [edi]
Function at 0x5a83f0
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x66eff4]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x5a8464
test edx, edx
mov esi, dword [0x7f7558]
jne 0x5a843e
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x1c]
mov eax, ebx
mov edx, esi
test ecx, ecx
jne 0x5a8430
call fcn.005a7d30
cmp eax, 7
je 0x5a8437
call sub.msvcrt.dll_abort
call fcn.005a7f20
jmp 0x5a8426
mov eax, esi
call fcn.005a7ea0
mov esi, dword [0x7f7554]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
jmp 0x5a840e
call fcn.005a7e00
mov edx, dword [0x66eff4]
jmp 0x5a8404

Function at 0x5a8480
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x5a84c0
mov edx, dword [0x66eff4]
test edx, edx
js 0x5a8510
test edx, edx
mov esi, dword [0x7f7558]
jne 0x5a84e0
lea edx, [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x1c], esi
call fcn.005a7f20
cmp eax, 7
je 0x5a84d0
call sub.msvcrt.dll_abort
nop
mov dword [esp], ebx
call fcn.005a8240
add esp, 0x20
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x1c]
call fcn.005a7ea0
lea esi, [esi]
mov esi, dword [0x7f7554]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x5a84a5
call fcn.005a7e00
mov edx, dword [0x66eff4]
mov esi, dword [0x7f7558]
test edx, edx
je 0x5a84a5
jmp 0x5a84e0
Function at 0x5b3160
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x5b31b3
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x5b31a0
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x5b3230
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.005b2a20
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.005b25d0
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.005b2e60
mov eax, dword [0x66f068]
cmp eax, 0xffffffff
je 0x5b325b
test eax, eax
je 0x5b324b
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x5b31bb
call fcn.005b8330
test al, 1
mov edx, 3
jne 0x5b323e
jmp 0x5b3243
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x5b3281
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x66f068], eax
jmp 0x5b323a
xor eax, eax
jmp 0x5b3277
Function at 0x654fa0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
call fcn.005a6280
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov eax, dword [ebp - 0x1c]
sub esp, 8
test eax, eax
jle 0x655106
mov eax, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esi + ebx*4]
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
call eax
add edi, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
cmp eax, ebx
jg 0x654ff2
mov dword [ebp - 0x34], edi
lea eax, [edi + eax*4 + 4]
mov dword [esp], eax
call fcn.0056e410
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
lea edi, [eax*4 + 4]
test eax, eax
mov dword [ebp - 0x38], edi
jle 0x6550dc
mov eax, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov eax, edi
mov edi, esi
mov esi, eax
lea esi, [esi]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
add eax, esi
add eax, edx
sub ecx, esi
mov dword [edx + ebx*4], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi + ebx*4]
mov dword [esp + 4], 0
add ebx, 1
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 0x20
add esi, eax
cmp dword [ebp - 0x1c], ebx
jg 0x655080
mov esi, edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x30]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00404470
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [ebp - 0x34], 0
mov edi, dword [ebp - 0x34]
jmp 0x655047

Function at 0x6565ec
Capabilities:
Hash data using murmur3

Disassembly:
or dword [edi], esp
add esi, dword [0x670acc]
call fcn.005e23b6
xor edx, ebx
sub edi, dword [0x670b98]
call fcn.0042e684
xor edx, ebx
call fcn.0041964c
sub dword [0x6705ad], 0xaa302a6c
xor ecx, 0xa9944673
xchg edi, edx
xor dword [0x67072f], eax
push esi
dec edi
Function at 0x658f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
mov ecx, 0x11
mov esi, 1
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
fld qword [esp + 0x7c]
mov edi, ebx
fstp qword [esp + 0x18]
rep stosd dword es:[edi], eax
mov cl, dl
mov dword [ebx + 0x14], edx
sub edx, 2
shl esi, cl
mov eax, esi
mov dword [ebx + 0x10], esi
mov dword [esp + 4], edx
sar eax, 2
mov dword [esp], ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
call fcn.00658861
test eax, eax
js 0x6590fd
mov eax, esi
mov ecx, 2
mov dword [esp + 4], 4
cdq
idiv ecx
mov dword [esp], eax
call fcn.0056e1d0
test eax, eax
mov ebp, eax
mov dword [ebx + 0x18], eax
je 0x6590fd
mov edx, dword [ebx + 0x3c]
test edx, edx
je 0x65902b
dec edx
jne 0x6590fd
lea edx, [eax + 4]
mov edi, 2
mov dword [ebx + 0x1c], edx
jmp 0x65903b
mov eax, dword [esp + 0x20]
mov edi, 1
lea edx, [ebp + eax*4]
mov dword [ebx + 0x1c], edx
fld qword [esp + 0x18]
fldz
fucompi st(1)
fstp st(0)
fld dword [0x6992a0]
jbe 0x659057
fiadd dword [esp + 0x20]
fstp qword [esp + 0x10]
jmp 0x65905b
fstp qword [esp + 0x10]
fld qword [esp + 0x18]
fabs
fstp qword [esp]
call fcn.005a8c60
lea eax, [edi*4]
fstp qword [esp + 0x18]
mov dword [esp + 0x34], esi
imul edi, edi, 0xfffffffc
mov dword [esp + 0x24], eax
lea eax, [ebp + edi]
xor ebp, ebp
mov dword [esp + 0x40], eax
xor eax, eax
mov esi, eax
add ebp, dword [esp + 0x24]
cmp esi, dword [esp + 0x20]
jge 0x6590f9
fld qword [esp + 0x10]
mov dword [esp + 0x28], esi
inc esi
fiadd dword [esp + 0x28]
fld xword [0x6992b0]
fmulp st(1)
fidiv dword [esp + 0x34]
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fst qword [esp]
fstp qword [esp + 0x38]
call fcn.005adbe0
fld qword [esp + 0x18]
fxch st(1)
mov eax, dword [esp + 0x40]
fchs
fmul st(1)
fxch st(1)
fstp xword [esp + 0x28]
fstp dword [eax + ebp]
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.005ae8a0
fchs
mov edx, dword [ebx + 0x1c]
fld xword [esp + 0x28]
add edx, ebp
fmulp st(1)
fstp dword [edx + edi]
jmp 0x65908d
xor eax, eax
jmp 0x659108
mov dword [esp], ebx
call fcn.00658f70
or eax, 0xffffffff
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x663d5c
Capabilities:
Hash data using sha1
Hash data using sha224
Hash data using sha256

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, edx
sar ecx, 5
cmp edx, 0xe0
mov byte [eax], cl
je 0x663db6
cmp edx, 0x100
je 0x663df7
cmp edx, 0xa0
jne 0x663e47
mov dword [eax + 0x50], 0x67452301
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x60], 0xc3d2e1f0
mov dword [eax + 0x70], 0x57e390
jmp 0x663e36
mov dword [eax + 0x50], 0xc1059ed8
mov dword [eax + 0x54], 0x367cd507
mov dword [eax + 0x58], 0x3070dd17
mov dword [eax + 0x5c], 0xf70e5939
mov dword [eax + 0x60], 0xffc00b31
mov dword [eax + 0x64], 0x68581511
mov dword [eax + 0x68], 0x64f98fa7
mov dword [eax + 0x6c], 0xbefa4fa4
mov dword [eax + 0x70], 0x57f410
jmp 0x663e36
mov dword [eax + 0x50], 0x6a09e667
mov dword [eax + 0x54], 0xbb67ae85
mov dword [eax + 0x58], 0x3c6ef372
mov dword [eax + 0x5c], 0xa54ff53a
mov dword [eax + 0x60], 0x510e527f
mov dword [eax + 0x64], 0x9b05688c
mov dword [eax + 0x68], 0x1f83d9ab
mov dword [eax + 0x6c], 0x5be0cd19
mov dword [eax + 0x70], 0x57f410
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
xor eax, eax
ret
mov eax, 0xffffffea
ret
Function at 0x1000ca40
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x1001ac40], eax
jne 0x1000ca5b
pop ecx
ret
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x110
push 0xf01ff
push str._emscq_Okp_skgj_Ttaxfms_Eayq
push str.Dpkdvy_Tuttrxw_Seu
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x1001ac3c], eax
jne 0x1000ca94
pop ecx
ret
mov edx, dword [0x1001ac40]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ecx, dword [0x1001ac3c]
mov esi, eax
lea eax, [esp + 4]
mov dword [esp + 4], str._utpskuLnada_mdc_Te_
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x1000cad0
Capabilities:
Modify service

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0xf003f
push str.Dpkdvy_Tuttrxw_Seu
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x15180
mov dword [esp + 0x28], 0x3e8
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
lea edx, [esp + 0xc]
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret