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

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x44d26a
add ecx, 8
call fcn.00422420
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x44d2b3
push dword [0x6b1224]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44d2a3
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x44d2a3
cmp dword [ecx + 8], 0
jne 0x44d2a3
mov al, byte [esi + 0x90]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.0050d350
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x44d2c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x44d2da
add ecx, 8
call fcn.004224c0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x44d323
push dword [0x6b1224]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44d313
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x44d313
cmp dword [ecx + 8], 0
jne 0x44d313
mov al, byte [esi + 0x98]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.0050d350
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x44d330
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x44d34a
add ecx, 0x10
call fcn.004218c0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x44d393
push dword [0x6b1224]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44d383
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x44d383
cmp dword [ecx + 8], 0
jne 0x44d383
mov al, byte [esi + 0x98]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.0050d350
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x44d3a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b670
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6a73e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x44d3ec
mov eax, dword [eax + 0x20]
mov dword [ebp - 4], 0
test eax, eax
je 0x44d3e5
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x44d428
push dword [0x6b1224]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44d418
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x44d418
cmp dword [ecx], 0
jne 0x44d418
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x44d421
push esi
call fcn.0050d350
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44e200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ff30
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6a73e8]
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 esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x18]
xor edx, edx
lock xadd dword [eax], edx
test edx, edx
jne 0x44e275
call fcn.00451240
push 0x6b1290
push 0x413160
push 0x6b128c
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x44e343
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 4], 0x6b1290
jmp 0x44e325
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x6b1224]
mov ecx, esi
mov dword [ebp - 4], 0
neg ecx
mov dword [ebp - 0x14], 0
lea eax, [esi + 0x14]
xorps xmm0, xmm0
sbb ecx, ecx
movq qword [ebp - 0x1c], xmm0
and ecx, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x6b1224]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push 0xffffffffffffffff
mov ecx, esi
mov byte [ebp - 4], 1
xor edi, edi
call fcn.004371d0
test eax, eax
je 0x44e300
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov ecx, esi
push 0xffffffffffffffff
mov edi, eax
call fcn.004371d0
test eax, eax
jne 0x44e2e7
push dword [ebp - 0x14]
push dword [0x6b1224]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
push dword [ebp + esi*4 - 0x28]
call fcn.0050d350
inc esi
add esp, 4
cmp esi, 3
jl 0x44e311
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.005bb391
mov esp, ebp
pop ebp
ret 4
call fcn.006027a2
int3

Function at 0x4506e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ecx, dword [0x6b1214]
mov esi, eax
test cl, 1
jne 0x450749
or ecx, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], ecx
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], 0x6b120c
cmp esi, 0xffffffff
jne 0x45076f
pop edi
or eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0x17
jne 0x45078d
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x6b1290
push 0x413160
push 0x6b128c
call fcn.004805c1
add esp, 0xc
test eax, eax
je 0x4507c7
mov ecx, dword [ebp - 4]
mov eax, esi
mov dword [edi], 0
xor ecx, ebp
mov dword [edi + 4], 0x6b1290
pop edi
pop esi
call fcn.005bb391
mov esp, ebp
pop ebp
ret
call fcn.006027a2
int3
Function at 0x450ce0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x1c]
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x450d2b
mov ecx, dword [esi + 4]
push 0
push 0
push edi
call fcn.00445200
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
jne 0x450d54
mov ecx, dword [esi + 4]
push 0
push 0x2719
push edi
call fcn.00445200
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
push ebx
push 0
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x450d8c
mov eax, 0x2746
jmp 0x450d99
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
pop ebx
je 0x450dc4
cmp eax, 0x3e5
je 0x450dc4
push dword [ebp - 8]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.00445200
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.00445570
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18

Function at 0x450f60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x450fab
mov ecx, dword [edi + 4]
push 0
push 0
push ebx
call fcn.00445200
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x450fd4
mov ecx, dword [edi + 4]
push 0
push 0x2719
push ebx
call fcn.00445200
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
push esi
push 0
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [ebp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
pop esi
je 0x451031
cmp eax, 0x3e5
je 0x451031
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00445200
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.00445570
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0x18
Function at 0x451050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
push 0
push 1
push 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x4510e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [ebp - 0xc], eax
call dword [edx]
mov ecx, dword [0x6b1214]
test cl, 1
jne 0x4510ce
or ecx, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], ecx
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x6b120c
test eax, eax
jne 0x451210
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov dword [edi + 8], eax
cmp dword [ebx + 8], 0
jne 0x451158
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [ebp - 0xc], eax
call dword [edx]
mov ecx, dword [0x6b1214]
test cl, 1
jne 0x451143
or ecx, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], ecx
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x6b120c
test eax, eax
jne 0x45121e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push edi
push 0x452b40
push dword [ebp - 0x14]
push 0
call fcn.00608b48
add esp, 0x18
mov dword [ebx + 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4511ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [ebp - 0x14], eax
call dword [edx]
test esi, esi
je 0x45119d
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x4511aa
push eax
call ebx
mov eax, dword [0x6b1214]
test al, 1
jne 0x4511dc
or eax, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], eax
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x6b120c
test eax, eax
jne 0x45122c
test esi, esi
je 0x4511fd
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb391
mov esp, ebp
pop ebp
ret 8
push str.thread.entry_event
lea eax, [ebp - 0x10]
push eax
call fcn.00437ff0
push str.thread.exit_event
lea eax, [ebp - 0x10]
push eax
call fcn.00437ff0
push str.thread
lea eax, [ebp - 0x1c]
push eax
call fcn.00437ff0
int3
Function at 0x452bc0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x452c21
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x6b1214]
mov edi, eax
test cl, 1
jne 0x452c12
or ecx, 1
mov dword [0x6b1210], 0x6b120c
push 0x63e650
mov dword [0x6b1214], ecx
mov dword [0x6b120c], 0x6413a8
call fcn.005bb37c
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
mov dword [ebp - 4], 0x6b120c
pop edi
jne 0x452c28
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x6406a8
lea eax, [ebp - 8]
push eax
call fcn.00437ff0
int3

Function at 0x4547b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.005bb920
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.005fc2a0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x4548a6
test edi, edi
je 0x4548a6
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4548a6
cmp eax, 0x3fff
ja 0x4548a6
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4548a6
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x643d24
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4548a6
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.005fc2a0
mov ecx, dword [ebp - 0x4010]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x643d28
lea eax, [esi - 1]
push eax
push edi
call fcn.00454a30
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.005bb391
mov esp, ebp
pop ebp
ret
Function at 0x454ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x454b47
test ebx, ebx
je 0x454b47
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x454b47
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x454b47
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x454b41
push esi
push ebx
push edi
call fcn.005fb7a0
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x454b41
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb391
mov esp, ebp
pop ebp
ret
Function at 0x4564a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45652b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x4564ed
cmp eax, 2
jne 0x456509
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x456525
test ecx, ecx
je 0x456520
test cl, 1
jne 0x456509
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x456525
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005bb391
mov esp, ebp
pop ebp
ret 0xc
Function at 0x457a20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor bl, bl
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x457a96
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x457a8f
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0060eb33
add esp, 8
test eax, eax
je 0x457a8d
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x457a66
jmp 0x457a8f
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb391
mov esp, ebp
pop ebp
ret

Function at 0x457b10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x630af0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor bl, bl
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
cmp dword [eax + 0x14], 8
mov byte [ebp - 0x19], bl
jb 0x457b57
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
jne 0x457b7e
xor al, al
jmp 0x457c12
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x457c09
test edi, edi
jne 0x457b96
mov bl, 1
jmp 0x457c09
push 0x6b5560
push edi
call fcn.005bb94d
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
je 0x457c09
push 0
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x457bfd
cmp dword [ebp - 0x18], edi
jne 0x457bfd
mov ecx, dword [ebp - 0x28]
push edi
mov edi, dword [ebp - 0x20]
push edi
mov dword [ebp - 4], 0
call fcn.0040b9b0
mov bl, 1
jmp 0x457c00
mov edi, dword [ebp - 0x20]
push edi
call fcn.005bb0f2
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
Function at 0x457c30
Capabilities:
Check if file exists
Clear file content
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x10], eax
mov eax, esi
mov byte [ebp - 9], bl
cmp dword [esi + 0x14], 8
jb 0x457c5a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x457c86
test al, 1
je 0x457c86
cmp dword [esi + 0x14], 8
mov ecx, esi
mov byte [ebp - 9], 1
jb 0x457c7b
mov ecx, dword [esi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x457c90
mov eax, dword [esi]
push edi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x457cf7
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 0x10
lea ecx, [eax + 0x10]
mov dword [ebp - 0x10], ecx
jb 0x457cc9
mov eax, dword [eax]
push 0
lea edx, [ebp - 8]
push edx
push dword [ecx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x457cf0
mov eax, dword [ebp - 0x10]
mov ecx, 1
movzx ebx, bl
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
cmove ebx, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 9], 0
pop edi
je 0x457d10
cmp dword [esi + 0x14], 8
jb 0x457d06
mov esi, dword [esi]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb391
mov esp, ebp
pop ebp
ret
Function at 0x4585a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x458600
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
mov dword [esi + 0x10], edi
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x63fad0
mov byte [esi], 0
call fcn.0040b9b0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
call fcn.0060eef3
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x458635
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push dword [ebp - 0x20]
push ebx
call fcn.005fbd20
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458660
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040b9b0
test ebx, ebx
je 0x458680
push ebx
call fcn.005ffbb1
add esp, 4
movups xmm0, xmmword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov eax, esi
mov dword [esi + 0x10], 0
xor ecx, ebp
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
pop ebx
movq xmm0, qword [ebp - 0xc]
pop edi
movq qword [esi + 0x10], xmm0
pop esi
call fcn.005bb391
mov esp, ebp
pop ebp
ret
Function at 0x459160
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp word [0x6b4e20], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
je 0x45919d
mov ecx, 0x6b4e20
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459190
jmp 0x4591fd
push 0
push 0x1a
push 0x6b4e20
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 0xc]
push 0x6b4e20
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x6b4e20
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4591d7
push 0x6b4e20
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov ecx, 0x6b4e20
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4591f2
sub ecx, edx
sar ecx, 1
push ecx
push 0x6b4e20
mov ecx, esi
call fcn.0040bab0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret