joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f17b3
Capabilities:
Hash data using sha512

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x150
cmp dword [ebp + 8], 0x20
mov esi, ecx
jne 0x4f194c
mov eax, edx
push 0x20
pop edi
lea ecx, [ebp - 0x15c]
mov edx, 0x695448
push edi
push eax
call fcn.004f15cb
pop eax
pop ecx
lea ecx, [ebp - 0x158]
mov eax, dword [ecx - 4]
mov edx, dword [eax + 0x48]
push 0x697a3c
call fcn.004ef643
pop ecx
lea ebx, [ebp - 0xf8]
mov edi, edx
mov edx, eax
mov ecx, ebx
push 0x69552c
push 0x20
pop eax
push eax
push edi
call fcn.004f1656
add esp, 0xc
mov eax, dword [ebx + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
push 0x20
pop eax
cmp dword [ebx + 4], eax
mov al, 1
jne 0x4f186a
mov eax, dword [ebp - 0xf8]
movsd xmm0, qword [eax + 0x18]
movsd qword [ebp - 0xdf], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [ebp - 0xe7], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
xor eax, eax
movsd qword [ebp - 0xef], xmm1
movsd qword [ebp - 0xf7], xmm0
lea ebx, [esi + 1]
lea edx, [ebp - 0xf8]
lea ecx, [ebp - 0x55]
mov byte [edx], al
push 0x69553c
call fcn.004f10c7
pop eax
lea edi, [ebp - 0x118]
lea edx, [ebp - 0x55]
mov ecx, edi
call fcn.004ed561
call fcn.004ecbdc
lea ecx, [ebp - 0xf8]
mov edx, edi
call fcn.004f1684
movsd xmm1, qword [edi + 0x10]
movsd xmm0, qword [edi + 0x18]
movsd xmm2, qword [edi]
cmp dword [ebp - 0x14], 0x20
mov al, 1
movsd qword [ebp - 0x24], xmm1
movsd xmm1, qword [edi + 8]
movsd qword [ebp - 0x1c], xmm0
movsd qword [ebp - 0x34], xmm2
movsd qword [ebp - 0x2c], xmm1
jne 0x4f1900
mov eax, dword [ebp - 0x10]
movsd xmm0, qword [eax + 0x18]
movsd qword [ebp - 0x3c], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [ebp - 0x44], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
xor eax, eax
movsd qword [ebp - 0x4c], xmm1
movsd qword [ebp - 0x54], xmm0
lea edx, [ebp - 0x55]
lea ecx, [esi + 0x21]
mov byte [edx], al
push 0x69554c
call fcn.004f10c7
pop eax
lea ecx, [esi + 0x41]
lea edx, [ebp - 0xf8]
call fcn.004f16cf
movsd xmm1, qword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x1c]
movsd xmm2, qword [ebp - 0x34]
xor eax, eax
movsd qword [ebx + 0x10], xmm1
movsd xmm1, qword [ebp - 0x2c]
movsd qword [ebx + 0x18], xmm0
movsd qword [ebx], xmm2
movsd qword [ebx + 8], xmm1
jmp 0x4f195c
mov al, 1
mov dword [esi + 4], 0x69640a
mov dword [esi + 8], 0xf
mov byte [esi], al
add esp, 0x150
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f1bdb
Capabilities:
Hash data using sha512

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
xorps xmm0, xmm0
lea eax, [esp + 0x90]
mov dword [esp + 0xc], ecx
movaps xmmword [eax - 0x10], xmm0
movaps xmmword [eax - 0x20], xmm0
movaps xmmword [eax - 0x30], xmm0
movaps xmmword [eax - 0x40], xmm0
movaps xmmword [eax - 0x50], xmm0
movaps xmmword [eax - 0x60], xmm0
movaps xmmword [eax - 0x70], xmm0
movaps xmmword [eax - 0x80], xmm0
push 0x10
pop ecx
mov esi, 0x695448
mov edi, eax
mov ebx, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
and dword [eax + 0x44], 0
and dword [eax + 0x40], 0
mov dword [eax + 0x48], 0x695448
and dword [eax + 0x50], 0
push 0x20
pop edi
lea esi, [esp + 0x10]
mov ecx, esi
push edi
call fcn.004efc0b
pop eax
mov ecx, esi
mov edx, ebx
push edi
call fcn.004efc0b
pop eax
mov edx, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 0x10]
call fcn.004efc0b
pop eax
lea edi, [esp + 0xf0]
push 0xd8
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, edi
call fcn.004efdb1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x51c19b
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x20], ecx
mov edi, dword [edx + 4]
mov ebx, dword [edx + 8]
mov dword [ebp - 0x1c], edx
mov ecx, esi
rol esi, 0xe
mov dword [ebp - 0x10], eax
mov edx, ebx
rol ecx, 0x19
rol edx, 0xe
xor esi, ecx
mov ecx, eax
rol eax, 0xe
rol ecx, 0x19
xor eax, ecx
mov ecx, edi
mov dword [ebp - 0x18], eax
mov eax, edi
rol ecx, 0xe
rol eax, 0x19
xor ecx, eax
mov eax, ebx
rol eax, 0x19
xor edx, eax
mov eax, dword [ebp + 8]
shr eax, 3
xor eax, esi
mov esi, dword [ebp - 0x10]
add eax, esi
shr esi, 3
xor esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add esi, edi
shr edi, 3
xor edi, ecx
add edi, ebx
shr ebx, 3
xor ebx, edx
add ebx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
add esi, dword [eax]
add edi, dword [eax + 4]
add ebx, dword [eax + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], esi
mov ecx, edx
mov esi, edx
shr edx, 0xa
rol ecx, 0xf
rol esi, 0xd
xor esi, ecx
mov ecx, dword [ebp - 0x14]
xor edx, esi
add edx, ebx
mov ebx, dword [eax]
add ecx, dword [eax + 0xc]
mov eax, ebx
rol eax, 0xf
mov dword [ebp - 0x14], ecx
mov ecx, ebx
shr ebx, 0xa
rol ecx, 0xd
xor ecx, eax
mov eax, edx
xor ebx, ecx
mov ecx, edx
rol eax, 0xf
rol ecx, 0xd
add ebx, edi
xor ecx, eax
mov eax, edx
mov esi, ebx
mov edi, ebx
shr eax, 0xa
rol esi, 0xd
shr edi, 0xa
xor eax, ecx
mov ecx, ebx
rol ecx, 0xf
add eax, dword [ebp - 0x10]
xor esi, ecx
xor edi, esi
mov esi, dword [ebp - 0x20]
add edi, dword [ebp - 0x14]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x51d1f5
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
mov esi, ecx
push dword [eax + 0x80]
push eax
push edx
call sub.ws2_32.dll_connect
test eax, eax
je 0x51d21c
call sub.KERNEL32.DLL_GetLastError
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x51d21f
mov byte [esi], 4
pop esi
pop ebp
ret
Function at 0x51d8b4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, ecx
cmp ebx, 0x3b9aca00
je 0x51d927
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, 0x3e8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], esi
mul edi
mov dword [ebp - 0x10], eax
mov eax, ecx
mov esi, edx
mul edi
mov edi, eax
mov ecx, edx
mov eax, ebx
mov ebx, 0xf4240
add edi, esi
adc ecx, 0
xor edx, edx
xor esi, esi
div ebx
add eax, dword [ebp - 0x10]
adc edi, 0
adc ecx, 0
setb dl
neg edi
mov edi, dword [ebp + 8]
sbb esi, esi
movzx edx, dl
or esi, eax
xor eax, eax
dec eax
or edx, ecx
mov edx, dword [ebp - 0x14]
cmove eax, esi
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov dword [ecx], eax
push 4
push ecx
push edi
push 0xffff
push edx
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x51d945
mov byte [esi], 4
jmp 0x51d950
call sub.KERNEL32.DLL_GetLastError
and dword [esi], 0
mov dword [esi + 4], eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x51e4e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
movzx eax, byte [0x706130]
test al, al
je 0x51e668
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x51e506
cmp eax, 3
jne 0x51e668
mov edi, dword [0x706134]
test edi, edi
je 0x51e668
mov dword [ebp - 0x10], 0
jmp 0x51e527
mov edi, dword [edi + 8]
test edi, edi
je 0x51e556
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x51e6a7
dec esi
push esi
call sub.KERNEL32.DLL_TlsGetValue
test eax, eax
je 0x51e520
push 0
push esi
mov esi, eax
call sub.KERNEL32.DLL_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x51e520
test byte [ebp - 0x10], 1
je 0x51e668
mov edi, dword [0x706134]
test edi, edi
je 0x51e668
mov dword [ebp - 0x10], 0
jmp 0x51e587
mov edi, dword [edi + 8]
test edi, edi
je 0x51e5b6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x51e6a7
dec esi
push esi
call sub.KERNEL32.DLL_TlsGetValue
test eax, eax
je 0x51e580
push 0
push esi
mov esi, eax
call sub.KERNEL32.DLL_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x51e580
test byte [ebp - 0x10], 1
je 0x51e668
mov edi, dword [0x706134]
test edi, edi
je 0x51e668
mov dword [ebp - 0x10], 0
jmp 0x51e5e7
mov edi, dword [edi + 8]
test edi, edi
je 0x51e616
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x51e6a7
dec esi
push esi
call sub.KERNEL32.DLL_TlsGetValue
test eax, eax
je 0x51e5e0
push 0
push esi
mov esi, eax
call sub.KERNEL32.DLL_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x51e5e0
test byte [ebp - 0x10], 1
je 0x51e668
mov edi, dword [0x706134]
test edi, edi
je 0x51e668
mov dword [ebp - 0x10], 0
jmp 0x51e637
mov edi, dword [edi + 8]
test edi, edi
je 0x51e662
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x51e6a7
dec esi
push esi
call sub.KERNEL32.DLL_TlsGetValue
test eax, eax
je 0x51e630
push 0
push esi
mov esi, eax
call sub.KERNEL32.DLL_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x51e630
test byte [ebp - 0x10], 1
jne 0x51e672
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x706134]
jmp 0x51e67d
mov edi, dword [edi + 8]
test edi, edi
je 0x51e668
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x51e6a7
dec esi
push esi
call sub.KERNEL32.DLL_TlsGetValue
test eax, eax
je 0x51e67a
push 0
push esi
mov esi, eax
call sub.KERNEL32.DLL_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x51e67a
mov edx, 0x2b
mov ecx, str.called__Option::unwrap____on_a__None__valueC:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.6_srcwin.rs
push 0x69df8c
call fcn.0043a9e0
add esp, 4
ud2
Function at 0x51f070
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x51f0e0
lea ebx, [esi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.DLL_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x51f11a
cmp dword [ebp - 0x14], 0
je 0x51f101
call sub.KERNEL32.DLL_TlsAlloc
cmp eax, 0xffffffff
je 0x51f137
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x706134]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x706134], esi
jne 0x51f0c0
mov byte [0x706130], 1
push 0
push 0
push ebx
call sub.KERNEL32.DLL_InitOnceComplete
jmp 0x51f110
call sub.KERNEL32.DLL_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x51f171
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x51f105
mov edi, dword [ebp - 0x10]
jmp 0x51f110
mov edi, dword [esi]
jmp 0x51f10f
mov edi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_TlsFree
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x69df08
push 0x69df68
push eax
call fcn.0051f5a0
push 0
push 4
push ebx
call sub.KERNEL32.DLL_InitOnceComplete
lea ecx, [ebp - 0x2c]
mov edx, 0x69df58
mov dword [ebp - 0x2c], 0x69df20
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0x6c4590
mov dword [ebp - 0x20], 0
call fcn.00439fc0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x69df20
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x6c4590
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0051f5d0
nop

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x592098]
test eax, eax
je 0x51f559
dec eax
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp eax, 2
jb 0x51f4ce
cmp dword [eax + 4], 0
mov edi, eax
je 0x51f4ce
add edi, 8
jmp 0x51f553
mov eax, dword [0x592098]
test eax, eax
je 0x51f568
dec eax
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp eax, 1
je 0x51f551
mov esi, eax
test eax, eax
jne 0x51f527
movzx eax, byte [0x706188]
mov ecx, 0xc
mov edx, 4
call fcn.00425680
test eax, eax
je 0x51f583
mov dword [eax], 0x592098
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x592098]
test eax, eax
je 0x51f577
dec eax
push esi
push eax
call sub.KERNEL32.DLL_TlsSetValue
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x51f553
test ecx, ecx
je 0x51f553
lock dec dword [ecx]
jne 0x51f553
call fcn.0051f030
jmp 0x51f553
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x592098
call fcn.0051f070
jmp 0x51f4b3
mov ecx, 0x592098
call fcn.0051f070
jmp 0x51f4dc
mov ecx, 0x592098
call fcn.0051f070
jmp 0x51f520
mov ecx, 4
mov edx, 0xc
call fcn.00434230
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x51fa20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x5920a8]
test eax, eax
je 0x51faa5
dec eax
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp eax, 2
jb 0x51fa41
cmp byte [eax + 4], 0
mov esi, eax
jne 0x51fa99
mov eax, dword [0x5920a8]
test eax, eax
je 0x51fab4
dec eax
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp eax, 1
je 0x51fa9e
mov esi, eax
test eax, eax
jne 0x51fa93
movzx eax, byte [0x706188]
mov ecx, 8
mov edx, 4
call fcn.00425680
test eax, eax
je 0x51facc
mov dword [eax], 0x5920a8
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x5920a8]
test eax, eax
je 0x51fac0
dec eax
push esi
push eax
call sub.KERNEL32.DLL_TlsSetValue
mov word [esi + 4], 1
add esi, 5
jmp 0x51faa0
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
mov ecx, 0x5920a8
call fcn.0051f070
jmp 0x51fa2e
mov ecx, 0x5920a8
call fcn.0051f070
jmp 0x51fa4b
mov ecx, 0x5920a8
call fcn.0051f070
jmp 0x51fa8c
mov ecx, 4
mov edx, 8
call fcn.00434230
nop dword [eax + eax]
Function at 0x51fd80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, edx
call 0x51fba0
pop edx
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x51fc97
mov dword [ebp - 0x18], ecx
lea ecx, [eax + 0xd]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
xor ecx, ecx
jmp 0x51fbe3
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
cmp ecx, edx
jae 0x51fc9c
mov ebx, edx
mov byte [eax + 0xc], 1
sub ebx, ecx
jb 0x51fd06
mov eax, dword [eax + 4]
mov esi, ecx
add eax, ecx
mov edx, 0xfffffff5
lea ecx, [ebp - 0x28]
push dword [ebp - 0x14]
push ebx
push eax
call fcn.0051fdd0
add esp, 0xc
movzx eax, byte [ebp - 0x28]
mov edi, dword [ebp - 0x24]
cmp al, 4
jne 0x51fc40
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
mov byte [ecx + 0xc], 0
movzx ecx, al
mov ecx, dword [ecx*4 + 0x51fd6c]
add ecx, dword [ebp - 0x20]
jmp ecx
test al, al
jne 0x51fc18
cmp edi, 6
jne 0x51fc18
mov eax, dword [ebp - 0x10]
mov edi, ebx
mov byte [eax + 0xc], 0
test edi, edi
je 0x51fcc0
mov ecx, esi
add ecx, edi
jmp 0x51fbd5
mov byte [ecx], 4
jmp 0x51fcfe
mov eax, dword [ebp - 0x18]
test ecx, ecx
mov byte [eax], 4
je 0x51fcfe
cmp edx, ecx
jb 0x51fd21
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
jmp 0x51fcfe
mov eax, dword [ebp - 0x18]
mov byte [eax], 2
mov dword [eax + 4], 0x69c4a0
mov ecx, esi
test esi, esi
je 0x51fcfe
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
mov edi, edx
sub edi, ecx
jb 0x51fd17
mov dword [eax + 8], 0
je 0x51fcfe
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 4]
add ecx, eax
push edi
push ecx
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [esi + 8], edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ecx
push 0x69c4d4
call fcn.00439ff0
add esp, 4
ud2
push 0x6c2bac
call fcn.0043a6f0
push 0x6c2bac
call fcn.0043a6f0
cmp dword [ebx + 4], 0
mov dword [ebp - 0x14], eax
je 0x51fd3f
mov edx, dword [ebx + 8]
mov ecx, dword [ebp - 0x1c]
call fcn.004256e0
mov ecx, edi
mov edx, 4
call fcn.004256e0
jmp 0x51fd52
mov ecx, dword [ebp - 0x10]
mov edx, esi
call 0x51fd80
push dword [ebp - 0x14]
call fcn.0056dac0
call fcn.00440c70
nop dword [eax]
push ss
add dword [eax], eax
add byte [edi], bl
add byte [eax], al
add byte [ecx - 0x41000000], dl
add byte [eax], al
add byte [edx + 0x55000000], dh
mov ebp, esp
push edi
push esi
test edx, edx
je 0x51fdb0
mov eax, dword [ecx + 8]
mov esi, ecx
mov edi, eax
sub edi, edx
jb 0x51fdb4
mov dword [esi + 8], 0
je 0x51fdb0
mov eax, dword [esi + 4]
add edx, eax
push edi
push edx
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [esi + 8], edi
pop esi
pop edi
pop ebp
ret
mov ecx, edx
mov edx, eax
push 0x6c2bac
call fcn.0043a6f0
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x520070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x103
lea edx, [ebp - 0x14]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x5200bf
push 0xffffffffffffffff
push edi
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0x103
je 0x5200e1
test eax, eax
js 0x5200cd
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov al, 4
jmp 0x5200d8
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
add esp, 0x34
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 0x69d7ac
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0
push eax
push ecx
push edx
call fcn.0051e990
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.0051ea60
mov ecx, 7
int 0x29
ud2
Function at 0x520750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x592088]
test eax, eax
je 0x5207e9
dec eax
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp eax, 2
jb 0x520778
cmp dword [eax + 4], 0
je 0x520778
add eax, 8
jmp 0x5207e6
mov eax, dword [0x592088]
test eax, eax
je 0x5207f8
dec eax
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp eax, 1
je 0x5207e4
mov esi, eax
test eax, eax
jne 0x5207cd
movzx eax, byte [0x706188]
mov ecx, 0x10
mov edx, 4
call fcn.00425680
test eax, eax
je 0x520813
mov dword [eax], 0x592088
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x592088]
test eax, eax
je 0x520807
dec eax
push esi
push eax
call sub.KERNEL32.DLL_TlsSetValue
lea eax, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
jmp 0x5207e6
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x592088
call fcn.0051f070
jmp 0x520762
mov ecx, 0x592088
call fcn.0051f070
jmp 0x520782
mov ecx, 0x592088
call fcn.0051f070
jmp 0x5207c6
mov ecx, 4
mov edx, 0x10
call fcn.00434230
nop word cs:[eax + eax]
nop dword [eax]

Function at 0x5241b0
Capabilities:
Enumerate process modules
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push eax
call fcn.00520750
test eax, eax
je 0x5241c8
cmp dword [eax], 0
sete al
add esp, 4
pop ebp
ret
lea eax, [ebp - 1]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadlocal.rs
mov edx, 0x46
push 0x69c9d4
push 0x69b840
push eax
call fcn.0043f6f0
nop word cs:[eax + eax]
nop
Function at 0x525f10
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x32], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x36], 0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0x10]
push esi
push eax
call fcn.00540550
add esp, 8
cmp byte [esp + 0x10], 4
jne 0x525f85
mov esi, dword [esp + 0x14]
jmp 0x525fa0
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp eax, 3
je 0x526046
cmp eax, 4
jne 0x526075
lea ebx, [esp + 0x18]
mov edx, esi
mov ecx, ebx
call fcn.00540750
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x525ffe
cmp byte [esp + 0x20], 3
jne 0x52603b
mov ebx, dword [esp + 0x24]
mov dword [esp + 4], edi
mov edi, dword [ebx + 4]
mov ecx, dword [ebx]
mov eax, dword [edi]
mov dword [esp + 8], ecx
push ecx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x525fec
mov edx, dword [edi + 8]
mov ecx, dword [esp + 8]
call fcn.004256e0
mov ecx, ebx
mov edx, 4
call fcn.004256e0
mov edi, dword [esp + 4]
jmp 0x52603b
cmp dword [esp + 0x54], 0
jne 0x52603b
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 4], eax
je 0x52607d
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_GetCurrentProcess
push 2
push 0
push 0
push ebx
push eax
push esi
push eax
call sub.KERNEL32.DLL_DuplicateHandle
test eax, eax
je 0x5260e5
mov eax, dword [esp + 0x18]
jmp 0x52607f
mov dword [edi], 0
jmp 0x5260f0
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [ebx]
mov dword [esp + 4], ecx
push ecx
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x526069
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 4]
call fcn.004256e0
mov ecx, esi
mov edx, 4
call fcn.004256e0
mov dword [edi], 0
jmp 0x5260f6
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x1c], eax
push eax
call sub.KERNEL32.DLL_CreateFileMappingA
test eax, eax
je 0x5260d4
mov ebx, eax
push dword [esp + 4]
push 0
push 0
push 4
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [esp + 0xc], eax
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x5260d4
mov eax, dword [esp + 8]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ecx, dword [esp + 4]
mov dword [edi + 0xc], ecx
mov dword [edi], 1
jmp 0x5260f0
mov dword [edi], 0
push dword [esp + 8]
call sub.KERNEL32.DLL_CloseHandle
jmp 0x5260f0
call sub.KERNEL32.DLL_GetLastError
mov dword [edi], 0
push esi
call sub.KERNEL32.DLL_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret