joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447d20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x6c0fe4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ecx + 0x30]
mov esi, edx
push 0
call fcn.005c2107
mov dword [ebp - 0x68], edx
lea ecx, [ebp - 0x64]
push 8
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
call fcn.00446fc0
add esp, 8
test esi, esi
je 0x447f1a
mov edx, dword [str.Author]
mov ecx, esi
push 7
call fcn.004434c0
add esp, 4
test eax, eax
je 0x447dc7
mov edx, dword [eax + 0x14]
xor eax, eax
test edx, edx
je 0x447dc7
cmp byte [edx], al
je 0x447dc7
nop dword [eax]
inc eax
cmp byte [eax + edx], 0
jne 0x447db0
test eax, eax
je 0x447dc7
push eax
lea ecx, [ebp - 0x64]
call fcn.00446fc0
add esp, 4
mov edx, dword [str.Creator]
mov ecx, esi
push 7
call fcn.004434c0
add esp, 4
test eax, eax
je 0x447e07
mov edx, dword [eax + 0x14]
xor eax, eax
test edx, edx
je 0x447e07
cmp byte [edx], al
je 0x447e07
nop word [eax + eax]
inc eax
cmp byte [eax + edx], 0
jne 0x447df0
test eax, eax
je 0x447e07
push eax
lea ecx, [ebp - 0x64]
call fcn.00446fc0
add esp, 4
mov edx, dword [str.Producer]
mov ecx, esi
push 7
call fcn.004434c0
add esp, 4
test eax, eax
je 0x447e47
mov edx, dword [eax + 0x14]
xor eax, eax
test edx, edx
je 0x447e47
cmp byte [edx], al
je 0x447e47
nop word [eax + eax]
inc eax
cmp byte [eax + edx], 0
jne 0x447e30
test eax, eax
je 0x447e47
push eax
lea ecx, [ebp - 0x64]
call fcn.00446fc0
add esp, 4
mov edx, dword [str.Title]
mov ecx, esi
push 7
call fcn.004434c0
add esp, 4
test eax, eax
je 0x447e87
mov edx, dword [eax + 0x14]
xor eax, eax
test edx, edx
je 0x447e87
cmp byte [edx], al
je 0x447e87
nop word [eax + eax]
inc eax
cmp byte [eax + edx], 0
jne 0x447e70
test eax, eax
je 0x447e87
push eax
lea ecx, [ebp - 0x64]
call fcn.00446fc0
add esp, 4
mov edx, dword [str.Subject]
mov ecx, esi
push 7
call fcn.004434c0
add esp, 4
test eax, eax
je 0x447ec7
mov edx, dword [eax + 0x14]
xor eax, eax
test edx, edx
je 0x447ec7
cmp byte [edx], al
je 0x447ec7
nop word [eax + eax]
inc eax
cmp byte [eax + edx], 0
jne 0x447eb0
test eax, eax
je 0x447ec7
push eax
lea ecx, [ebp - 0x64]
call fcn.00446fc0
add esp, 4
mov edx, dword [str.Keywords]
mov ecx, esi
push 7
call fcn.004434c0
add esp, 4
test eax, eax
je 0x447f07
mov edx, dword [eax + 0x14]
xor eax, eax
test edx, edx
je 0x447f07
cmp byte [edx], al
je 0x447f07
nop word [eax + eax]
inc eax
cmp byte [eax + edx], 0
jne 0x447ef0
test eax, eax
je 0x447f07
push eax
lea ecx, [ebp - 0x64]
call fcn.00446fc0
add esp, 4
mov edx, dword [ebx + 0xc]
lea ecx, [ebp - 0x64]
push 4
add edx, 0x10
call fcn.00446fc0
add esp, 4
lea ecx, [edi + 0x8c]
lea edx, [ebp - 0x64]
call fcn.00447130
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b03a9
mov esp, ebp
pop ebp
ret
Function at 0x460130
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xb69], 0
je 0x460150
cmp byte [esi + 0xb6a], 0
je 0x460150
mov eax, dword [esi + 0xb6c]
mov byte [eax], 1
jmp 0x460159
mov eax, dword [esi + 0xb6c]
mov byte [eax], 0
mov ecx, dword [esi + 0xb6c]
mov edx, esi
mov dword [esi + 0x1b8], ecx
add ecx, 8
movups xmm0, xmmword [str.Data_Logger_record]
movups xmmword [esi + 0x100], xmm0
mov ax, word [0x6988e4]
mov word [esi + 0x110], ax
mov al, byte [0x6988e6]
mov byte [esi + 0x112], al
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x460190
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4601a1
mov eax, dword [str.PROTOOLLogo.jpg]
mov dword [ecx], eax
mov eax, dword [0x698a90]
mov dword [ecx + 4], eax
mov eax, dword [0x698a94]
mov dword [ecx + 8], eax
mov eax, dword [0x698a98]
mov dword [ecx + 0xc], eax
mov al, byte [0x698a9c]
mov byte [ecx + 0x10], al
lea eax, [esi + 0x140]
mov ecx, dword [esi + 0x1b8]
push 0x20
push eax
call fcn.004630c0
push ecx
mov ecx, dword [esi + 0x1b8]
lea eax, [esi + 0x160]
push eax
call fcn.00463170
movsd xmm0, qword [0x69c250]
lea ecx, [esi + 0x1c0]
movsd xmm3, qword [0x69c278]
movsd xmm2, qword [0x69c258]
movsd xmm1, qword [0x69c230]
movsd qword [esi + 0x1a8], xmm0
mov dword [esi + 0x18c], 0x20
movd xmm0, dword [esi + 0x18c]
cvtdq2pd xmm0, xmm0
mov dword [esi + 0x188], 0x50
mov dword [esi + 0x180], 0x15b
movsd qword [esi + 0x190], xmm3
addsd xmm0, xmm3
movsd qword [esi + 0x1a0], xmm2
movsd qword [esi + 0x198], xmm1
movsd qword [esi + 0x1b0], xmm1
addsd xmm0, xmm2
addsd xmm0, xmm1
addsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [esi + 0x184], eax
push dword [esi + 0xb6c]
call fcn.0045c200
push dword [esi + 0xb6c]
lea ecx, [esi + 0x628]
call fcn.0045c900
push dword [esi + 0xb6c]
lea ecx, [esi + 0xa20]
call fcn.0045e2b0
mov ecx, esi
pop esi
jmp fcn.004602c0
Function at 0x4774d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x477515
call fcn.00483956
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x477515
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47751d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.00485613
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x477f5d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x477fe9
cmp dword [esi + 0x20], 0
je 0x477fe9
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477fe9
cmp dword [ebp + 8], 0
je 0x477fe9
xor edi, edi
mov ebx, edi
call fcn.00483956
push 0x5f0010
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x477fcd
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x477fe9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.00496b63
mov edi, eax
add esp, 0xc
test edi, edi
je 0x477fe5
mov ecx, esi
call fcn.00477cfb
mov eax, edi
jmp 0x477feb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47ca39
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5de08e
call fcn.005b0bfa
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x47ca5f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x47cab9
lea ecx, [ebp - 0x10]
call fcn.0040c2d0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5eea28]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005c4706
push eax
call fcn.004024e0
add esp, 0x14
test esi, esi
je 0x47caac
push esi
call fcn.005b5c13
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402680
mov eax, ebx
call fcn.005b0bc8
ret 8
Function at 0x4843e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x48442d
call fcn.00483956
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48442d
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x48443a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x484476
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x484459
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x484462
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x484474
test di, di
jne 0x484474
test dx, dx
je 0x484476
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4844df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.00483956
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48451f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48451f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00484527
jmp 0x484521
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x484817
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x5de568
call fcn.005b0c63
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.00483956
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x484876
call fcn.00483956
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48488a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x484886
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x484892
or eax, 0xffffffff
jmp 0x4849e4
mov ecx, edi
call fcn.00484e22
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0047615f
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x48491e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x48491e
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x48491e
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.0046a0a0
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x48491b
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x5eea28]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x48491b
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0047cb04
test eax, eax
je 0x48491b
push 0
mov ecx, esi
call fcn.0047c8d7
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.00475de2
push ebx
call fcn.00477543
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.004847ba
test eax, eax
jne 0x484967
cmp dword [edi + 0x9c], eax
jne 0x484967
call fcn.00483956
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.00477543
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.004847ba
and dword [edi + 0x9c], 0
jmp 0x484992
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x4849a6
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0047c8d7
test esi, esi
je 0x4849b3
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x4849c9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x4849c9
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x5eea28]
mov ecx, edi
call esi
mov ecx, edi
call fcn.00484dd9
mov eax, dword [edi + 0x68]
call fcn.005b0bc8
ret
Function at 0x48794f
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4879a2
push esi
push dword [ebp + 8]
call fcn.00487b38
mov edi, eax
test edi, edi
je 0x48799d
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x48799d
mov eax, dword [ebp - 8]
jmp 0x4879b4
mov eax, dword [ebp + 0x10]
jmp 0x4879b4
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x4879ba
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de789
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.005b0d80
mov eax, dword [0x6c0fe4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x487aeb
push ebx
push edx
call fcn.00487b38
mov ebx, eax
test ebx, ebx
jne 0x487a22
push esi
jmp 0x487b13
lea ecx, [ebp - 0x2014]
call fcn.0040c2d0
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x487aaa
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.0040c380
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.0041bd70
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x487ad8
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.0040c4a0
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00402680
jmp 0x487b1a
push esi
mov ecx, edi
call fcn.0040c220
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x487ad1
test esi, esi
jne 0x487af4
mov esi, 0x620488
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.0040c220
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b03a9
leave
ret 0x10
Function at 0x48b744
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00483956
push 0xf1
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48b815
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48b815
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x48b815
movzx eax, word [edi + 6]
xor ecx, ecx
push ebx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a588
pop ecx
movzx ecx, word [edi + 6]
xor esi, esi
xor edx, edx
mov ebx, eax
mov eax, ecx
cmp si, cx
jae 0x48b7cf
lea ecx, [edi + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov dword [ebx + edx*4], eax
inc edx
movzx esi, word [edi + 6]
cmp edx, esi
jl 0x48b7bb
mov eax, esi
mov ecx, dword [ebp - 4]
movzx eax, ax
push eax
push ebx
call fcn.0048bf8b
push ebx
mov esi, eax
call fcn.0048a583
pop ecx
test esi, esi
je 0x48b810
movzx ecx, word [edi + 4]
movzx esi, word [edi + 2]
push ecx
push esi
lea eax, [ecx + 7]
mov ecx, dword [ebp - 4]
lea edx, [esi + 7]
push eax
push edx
call fcn.0048c157
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0048b6f3
mov esi, eax
mov eax, esi
pop ebx
jmp 0x48b817
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x48fda3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x48fdcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48fdd3
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.0040c320
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004a01fb
int3

Function at 0x4900ae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x4900bf
xor eax, eax
jmp 0x4900db
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4900e0
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.0040c320
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004a01fb
int3

Function at 0x49017e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x5eea28]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4901b1
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.0040c320
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004a01fb
int3
Function at 0x49028a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x4902b5
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4902bb
cmp dword [ebp - 4], esi
jne 0x4902d2
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.0040c320
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004a01fb
lea ecx, [edi + 0xc]
call fcn.0040c320
push eax
push 0xffffffffffffffff
push 0xd
call fcn.0049fe51
int3

Function at 0x493abe
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0047c97f
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x493afa
call fcn.00493cdb
mov dword [esi + 0xc], 1
jmp 0x493aff
call fcn.00493cdb
cmp dword [esi], 0
je 0x493b4a
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x493b25
push edi
call fcn.00477591
lea ecx, [edi + 1]
push ecx
jmp 0x493b34
push 0xff
call fcn.0040c380
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041bd70
pop edi
jmp 0x493b6e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x493b6e
push dword [esi]
push dword [ebp - 4]
call fcn.00494b7b
pop esi
leave
ret 0xc

Function at 0x493c32
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00493cdb
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x493c7a
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00477591
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041bd70
jmp 0x493c85
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00494b7b
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x495552
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x4955c9
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x49558f
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x49558f
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x4955bc
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4955bf
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4955b5
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x5eea28]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x495572
test eax, eax
je 0x495610
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.00495841
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x5eea28]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x495894
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x5df108
call fcn.005b0c63
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x49598b
cmp edi, dword [ebx + 0xc]
jge 0x49598b
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4958eb
cmp edi, dword [esi + 8]
jl 0x495979
cmp dword [ebp + 0xc], 0
je 0x495979
xor edi, edi
jmp 0x49591d
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.00495351
mov esi, eax
test esi, esi
je 0x495905
mov dword [esi], vtable.CThreadData.0
jmp 0x495907
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.00410a30
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x495939
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x495945
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4959b2
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.005b29a0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x49598b
cmp edi, dword [esi + 8]
jge 0x49598b
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.005b0bc8
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0048179a
int3