joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
lea eax, [esi - 1]
cmp eax, edx
jae 0x44080e
cmp esi, edx
jae 0x440806
mov ecx, dword [ebp - 0x10]
lea eax, [esi + esi*4]
mov dword [ebp - 0x20], edx
lea eax, [ecx + eax*4 - 0x14]
mov dword [ebp - 0x24], eax
jmp 0x4406f4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
add dword [ebp - 0x24], 0x14
inc esi
cmp esi, edx
je 0x440806
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
lea esi, [esi + esi*4]
mov edi, dword [eax + esi*4 + 0xc]
lea ebx, [eax + esi*4]
cmp edi, dword [eax + esi*4 - 8]
jae 0x4407c0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
mov dword [ebp - 0x30], edi
lea eax, [eax + esi*4 - 0x14]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebp - 0x24]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov dword [ebp - 0x18], ecx
movsd qword [ebx], xmm0
movsd qword [ebx + 8], xmm1
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x10], ecx
mov ebx, dword [ebp - 0x28]
dec ebx
jne 0x440786
jmp 0x4406c7
lea eax, [esi - 0x14]
dec ebx
mov ecx, dword [eax + 0x10]
test ebx, ebx
mov dword [esi + 0x10], ecx
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov esi, eax
je 0x4406c4
cmp edi, dword [esi - 8]
jb 0x440760
jne 0x4407b5
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi - 0xc]
mov edi, ecx
sub edi, eax
cmovb eax, ecx
push eax
push dword [esi - 0x10]
push dword [ebp - 0x14]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
cmovne edi, eax
test edi, edi
mov edi, dword [ebp - 0x30]
js 0x440760
mov eax, esi
jmp 0x4406c7
jne 0x4406e4
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx - 0xc]
mov edx, ecx
mov dword [ebp - 0x1c], ecx
sub edx, eax
cmovb eax, ecx
mov dword [ebp - 0x18], edx
push eax
push dword [ebx - 0x10]
push dword [ebp - 0x14]
call sub.msvcrt.dll_memcmp
mov edx, dword [ebp - 0x20]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
test eax, eax
cmovne ecx, eax
test ecx, ecx
jns 0x4406e4
jmp 0x44071a
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.assertion_failed:_offset___0__offset___len
mov edx, 0x2e
push 0x585a14
call fcn.0046b190
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x440fd0
Capabilities:
Encode data using base64
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 8]
lea esi, [eax - 1]
cmp esi, edx
jae 0x441080
cmp eax, edx
jae 0x441078
mov esi, 1
lea edi, [ecx + eax*8 - 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
sub esi, eax
jmp 0x441023
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea edi, [ecx + eax*8 - 8]
mov esi, dword [ebp - 0x18]
mov dword [edi], ebx
mov dword [edi + 4], esi
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
inc eax
dec esi
add edi, 8
cmp eax, edx
je 0x441078
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [ecx + eax*8 - 8]
jae 0x44101a
mov edx, dword [ecx + eax*8 + 4]
movsd xmm0, qword [ecx + eax*8 - 8]
cmp eax, 1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edx
movsd qword [ecx + eax*8], xmm0
je 0x441002
nop dword [eax]
cmp ebx, dword [edi - 8]
jae 0x441070
mov ecx, dword [edi - 8]
mov edx, dword [edi - 4]
inc esi
mov dword [edi + 4], edx
mov dword [edi], ecx
lea edi, [edi - 8]
jne 0x441050
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov edi, ecx
jmp 0x44100c
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x44100c
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.assertion_failed:_offset___0__offset___len
mov edx, 0x2e
push 0x585a14
call fcn.0046b190
nop word cs:[eax + eax]
nop
Function at 0x454a70
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ecx]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x454aa8
mov eax, dword [ecx + 0xc]
cmp eax, 5
jae 0x454b3f
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], ecx
mov edi, edx
sub edi, eax
jae 0x454ab1
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x454b28
mov dword [ebp - 0x10], 0
jmp 0x454b28
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], ecx
add eax, 8
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov edi, ebx
mov ebx, dword [ebp - 0x24]
mov eax, esi
test al, 1
jne 0x454a9a
cmp edi, ebx
ja 0x454a9a
mov eax, edx
sub eax, edi
jb 0x454b33
cmp edi, ebx
setae bl
mov esi, ebx
mov ebx, edi
adc ebx, 0
cmp eax, ecx
jb 0x454ad0
mov eax, dword [ebp - 0x10]
add eax, edi
push ecx
push eax
push dword [ebp - 0x1c]
call sub.msvcrt.dll_memcmp
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jne 0x454ad0
add ecx, edi
mov eax, edx
sub eax, ecx
jb 0x454b50
add ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov edx, ecx
mov dword [esi], edx
mov dword [esi + 4], eax
mov edx, edi
mov eax, dword [ebp - 0x10]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
push 0x580130
call fcn.004699f0
mov ecx, eax
mov edx, 4
push 0x5769a0
call fcn.0046a7e0
push 0x57692c
call fcn.004699f0
nop word [eax + eax]
Function at 0x470260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor esi, esi
lea eax, [edx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea edi, [esi + eax]
jne 0x4702b0
cmp esi, edi
ja 0x47031b
cmp edi, dword [ebp + 0x10]
ja 0x470329
add esi, dword [ebp + 0xc]
nop word [eax + eax]
test eax, eax
je 0x4702b2
dec eax
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x4702a0
jmp 0x47030f
ja 0x4702b9
cmp edx, dword [ebp - 0x10]
mov esi, edi
jne 0x470275
mov edi, dword [ebp + 0x18]
movzx ecx, cx
mov al, 1
add edi, ebx
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebx]
lea esi, [ebx + 1]
test dl, dl
js 0x4702f0
mov ebx, esi
sub ecx, edx
jns 0x470307
jmp 0x470311
cmp esi, edi
je 0x470338
movzx esi, byte [ebx + 1]
and edx, 0x7f
add ebx, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x470311
xor al, 1
cmp ebx, edi
jne 0x4702d0
jmp 0x470311
xor eax, eax
and al, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x578378
call fcn.0046ea80
mov edx, dword [ebp + 0x10]
mov ecx, edi
push 0x578378
call fcn.0046a7e0
mov ecx, 0x586c6b
mov edx, 0x2b
push 0x578368
call fcn.0046b190
nop dword [eax]

Function at 0x474b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
call fcn.00474b94
Function at 0x489720
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 [0x5970dc]
test al, al
je 0x4898a8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x489746
cmp eax, 3
jne 0x4898a8
mov edi, dword [0x5970e0]
test edi, edi
je 0x4898a8
mov dword [ebp - 0x10], 0
jmp 0x489767
mov edi, dword [edi + 8]
test edi, edi
je 0x489796
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4898e7
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x489760
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 0x489760
test byte [ebp - 0x10], 1
je 0x4898a8
mov edi, dword [0x5970e0]
test edi, edi
je 0x4898a8
mov dword [ebp - 0x10], 0
jmp 0x4897c7
mov edi, dword [edi + 8]
test edi, edi
je 0x4897f6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4898e7
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x4897c0
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 0x4897c0
test byte [ebp - 0x10], 1
je 0x4898a8
mov edi, dword [0x5970e0]
test edi, edi
je 0x4898a8
mov dword [ebp - 0x10], 0
jmp 0x489827
mov edi, dword [edi + 8]
test edi, edi
je 0x489856
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4898e7
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x489820
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 0x489820
test byte [ebp - 0x10], 1
je 0x4898a8
mov edi, dword [0x5970e0]
test edi, edi
je 0x4898a8
mov dword [ebp - 0x10], 0
jmp 0x489877
mov edi, dword [edi + 8]
test edi, edi
je 0x4898a2
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4898e7
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x489870
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 0x489870
test byte [ebp - 0x10], 1
jne 0x4898b2
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x5970e0]
jmp 0x4898bd
mov edi, dword [edi + 8]
test edi, edi
je 0x4898a8
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4898e7
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x4898ba
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x4898ba
mov edx, 0x2b
mov ecx, 0x586c6b
push 0x5839b0
call fcn.0046b190
add esp, 4
ud2
Function at 0x48a3d0
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 0x48a440
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 0x48a476
cmp dword [ebp - 0x14], 0
je 0x48a45d
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x48a488
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x5970e0]
nop dword [eax + eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x5970e0], esi
jne 0x48a420
mov byte [0x5970dc], 1
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x48a46c
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x48a4c2
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x48a461
mov edi, dword [ebp - 0x10]
jmp 0x48a46c
mov edi, dword [esi]
jmp 0x48a46b
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
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.0048a800
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
lea ecx, [ebp - 0x2c]
mov edx, 0x58397c
mov dword [ebp - 0x2c], 0x583944
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.vmesh_src_char_anim.rs
mov dword [ebp - 0x20], 0
call fcn.004696f0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x583944
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.vmesh_src_char_anim.rs
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0048a840
Function at 0x48a6e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x572178]
test eax, eax
je 0x48a70a
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x48a71f
cmp dword [eax + 4], 0
mov edi, eax
je 0x48a71f
add edi, 8
jmp 0x48a7d7
mov ecx, 0x572178
call fcn.0048a3d0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x48a6fa
mov eax, dword [0x572178]
test eax, eax
je 0x48a7bc
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x48a7d5
mov esi, eax
test eax, eax
jne 0x48a792
movzx eax, byte [0x597110]
mov eax, dword [0x5970d8]
test eax, eax
jne 0x48a764
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x48a7e9
mov dword [0x5970d8], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x48a7e9
mov dword [eax], 0x572178
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x572178]
test eax, eax
je 0x48a7dd
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 0x48a7d7
test ecx, ecx
je 0x48a7d7
lock dec dword [ecx]
jne 0x48a7d7
call fcn.0048a390
jmp 0x48a7d7
mov ecx, 0x572178
call fcn.0048a3d0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x48a73c
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x572178
call fcn.0048a3d0
jmp 0x48a78b
mov ecx, 4
mov edx, 0xc
call fcn.00429f40
nop dword [eax + eax]

Function at 0x48a800
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0x58392c
lea esi, [ebp - 0xc]
lea edx, [ebp - 8]
xor ecx, ecx
push 0x58398c
push eax
push 0x581df4
push esi
push 0x581df4
call fcn.0046b200
nop word cs:[eax + eax]
nop dword [eax + eax]
Function at 0x48b050
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x572188]
test eax, eax
je 0x48b0f3
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x48b075
cmp byte [eax + 4], 0
mov esi, eax
jne 0x48b0eb
mov eax, dword [0x572188]
test eax, eax
je 0x48b111
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x48b12a
mov esi, eax
test eax, eax
jne 0x48b0e5
movzx eax, byte [0x597110]
mov eax, dword [0x5970d8]
test eax, eax
jne 0x48b0ba
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x48b13d
mov dword [0x5970d8], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x48b13d
mov dword [eax], 0x572188
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x572188]
test eax, eax
je 0x48b131
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov word [esi + 4], 1
add esi, 5
mov eax, esi
pop esi
pop ebp
ret
mov ecx, 0x572188
call fcn.0048a3d0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x48b06d
jmp 0x48b075
mov ecx, 0x572188
call fcn.0048a3d0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x48b092
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
mov ecx, 0x572188
call fcn.0048a3d0
jmp 0x48b0de
mov ecx, 4
mov edx, 8
call fcn.00429f40
nop dword [eax]
Function at 0x48b460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, edx
call 0x48b230
pop edx
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x48b359
mov dword [ebp - 0x1c], ecx
lea ecx, [eax + 0xd]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
jmp 0x48b2a0
mov ebx, edx
mov byte [eax + 0xc], 1
mov dword [ebp - 0x10], ecx
sub ebx, ecx
jb 0x48b3c9
mov esi, eax
mov eax, dword [eax + 4]
add eax, ecx
mov edx, 0xfffffff5
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
push ebx
push eax
call fcn.0048b4b0
add esp, 0xc
movzx eax, byte [ebp - 0x28]
mov edi, dword [ebp - 0x24]
cmp al, 4
jne 0x48b300
mov eax, dword [ebp - 0x28]
mov byte [esi + 0xc], 0
movzx ecx, al
mov ecx, dword [ecx*4 + 0x48b444]
add ecx, dword [ebp - 0x20]
jmp ecx
test al, al
jne 0x48b2d8
cmp edi, 6
jne 0x48b2d8
mov edi, ebx
mov byte [esi + 0xc], 0
test edi, edi
je 0x48b386
mov ecx, dword [ebp - 0x10]
add ecx, edi
mov edx, dword [esi + 8]
mov eax, esi
cmp ecx, edx
jb 0x48b2a0
jmp 0x48b35e
mov byte [ecx], 4
jmp 0x48b3c1
mov eax, dword [ebp - 0x1c]
test ecx, ecx
mov byte [eax], 4
je 0x48b3c1
cmp edx, ecx
jb 0x48b3e4
mov dword [esi + 8], 0
jmp 0x48b3c1
mov eax, dword [ebp - 0x1c]
mov byte [eax], 2
mov dword [eax + 4], 0x5860ec
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x48b3c1
mov edx, dword [esi + 8]
mov edi, edx
sub edi, ecx
jb 0x48b3da
mov eax, esi
mov dword [esi + 8], 0
je 0x48b3c1
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, eax
push 0x5823e4
call fcn.004699f0
add esp, 4
ud2
push 0x581e24
call fcn.0046a7e0
push 0x581e24
call fcn.0046a7e0
cmp dword [ebx + 4], 0
mov dword [ebp - 0x18], eax
je 0x48b416
cmp dword [ebx + 8], 9
jb 0x48b406
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 4]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x48b42b
mov edx, dword [ebp - 0x10]
mov ecx, esi
call 0x48b460
push dword [ebp - 0x18]
call fcn.00567e20
call fcn.0046f480
nop
inc ebp
add dword [eax], eax
add byte [eax + eax], bl
add byte [eax], al
mov esi, 0xf7000000
add byte [eax], al
add bh, bl
add byte [eax], al
add byte [edi], cl
pop ds
test byte [eax], al
add byte [eax], al
add byte [eax], al
push ebp
mov ebp, esp
push edi
push esi
test edx, edx
je 0x48b490
mov eax, dword [ecx + 8]
mov esi, ecx
mov edi, eax
sub edi, edx
jb 0x48b494
mov dword [esi + 8], 0
je 0x48b490
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 0x581e24
call fcn.0046a7e0
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x48b750
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 0x48b79f
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0x103
je 0x48b7c1
test eax, eax
js 0x48b7ad
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov al, 4
jmp 0x48b7b8
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], 0x583404
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0
push eax
call fcn.00489b40
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.00489c30
mov ecx, 7
int 0x29
ud2
Function at 0x48c0d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x572168]
test eax, eax
je 0x48c0f5
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x48c10a
cmp dword [eax + 4], 0
je 0x48c10a
add eax, 8
pop esi
pop ebp
ret
mov ecx, 0x572168
call fcn.0048a3d0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x48c0e9
mov eax, dword [0x572168]
test eax, eax
je 0x48c189
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x48c19e
mov esi, eax
test eax, eax
jne 0x48c171
movzx eax, byte [0x597110]
mov eax, dword [0x5970d8]
test eax, eax
jne 0x48c143
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x48c1af
mov dword [0x5970d8], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x48c1af
mov dword [eax], 0x572168
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x572168]
test eax, eax
je 0x48c1a3
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
pop esi
pop ebp
ret
mov ecx, 0x572168
call fcn.0048a3d0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x48c11f
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x572168
call fcn.0048a3d0
jmp 0x48c16a
mov ecx, 4
mov edx, 0x10
call fcn.00429f40
nop

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

Disassembly:
push ebp
mov ebp, esp
push eax
call fcn.0048c0d0
test eax, eax
je 0x48fab8
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_destructionlibrary_std_src_threadlocal.rs
mov edx, 0x46
push 0x58289c
push 0x581dd4
push eax
call fcn.0046f150
nop word cs:[eax + eax]
nop
Function at 0x491740
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 + 0xc]
push esi
push eax
call fcn.004ac610
add esp, 8
cmp byte [esp + 0xc], 4
jne 0x4917b5
mov esi, dword [esp + 0x10]
jmp 0x4917d0
movzx eax, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
cmp eax, 3
je 0x49186c
cmp eax, 4
jne 0x49191e
lea ebx, [esp + 0x18]
mov edx, esi
mov ecx, ebx
call fcn.004acd60
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x49182b
cmp byte [esp + 0x20], 3
jne 0x49194c
mov eax, dword [esp + 0x24]
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp + 8], ecx
push ecx
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x49193b
cmp dword [ebx + 8], 9
jae 0x491926
mov eax, dword [esp + 8]
jmp 0x49192d
cmp dword [esp + 0x54], 0
jne 0x49194c
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 4], eax
je 0x491893
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 0x491954
mov eax, dword [esp + 0x18]
jmp 0x491895
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 0x491910
cmp dword [ebx + 8], 9
jae 0x4918fb
mov eax, dword [esp + 4]
jmp 0x491902
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 0x4918ea
mov ebx, eax
push dword [esp + 4]
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov dword [esp + 0x14], eax
push ebx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4918ea
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 0x49195f
mov dword [edi], 0
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
jmp 0x49195f
mov eax, dword [esp + 4]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov dword [edi], 0
jmp 0x491965
mov eax, dword [esp + 8]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
push dword [esp + 4]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov dword [edi], 0
jmp 0x49195f
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