joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e5b20
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.004dc160
add esp, 4
mov ecx, dword [esp]
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x4e5b86
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.004e39c0
add esp, 4
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x4e5b82
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x4e5b8d
mov byte [esi], 4
test ebx, ebx
jne 0x4e5b9d
jmp 0x4e5ba9
mov eax, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], eax
jmp 0x4e5ba9
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4e5ba9
mov ecx, edi
mov edx, 2
call fcn.00404040
add esp, 0x18
pop esi
pop edi
pop ebx
ret

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

Disassembly:
push edi
push esi
mov eax, dword [0x6400b0]
test eax, eax
je 0x4e88f8
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4e886c
cmp dword [eax + 4], 0
mov edi, eax
je 0x4e886c
add edi, 8
jmp 0x4e88f3
mov eax, dword [0x6400b0]
test eax, eax
je 0x4e8907
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4e88f1
mov esi, eax
test eax, eax
jne 0x4e88c7
movzx eax, byte [0x640d9c]
mov ecx, 0xc
mov edx, 4
call fcn.00403fe0
test eax, eax
je 0x4e8922
mov dword [eax], 0x6400b0
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x6400b0]
test eax, eax
je 0x4e8916
dec eax
push esi
push eax
call dword [sym.imp.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 0x4e88f3
test ecx, ecx
je 0x4e88f3
lock dec dword [ecx]
jne 0x4e88f3
call fcn.004e8940
jmp 0x4e88f3
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x6400b0
call fcn.00579700
jmp 0x4e8850
mov ecx, 0x6400b0
call fcn.00579700
jmp 0x4e887a
mov ecx, 0x6400b0
call fcn.00579700
jmp 0x4e88bf
mov ecx, 4
mov edx, 0xc
call fcn.00576700
ud2
Function at 0x4e8f70
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push edi
push esi
test dx, dx
mov eax, 2
mov edi, 0x17
mov esi, ecx
cmove edi, eax
push 0x81
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4e8fa6
mov dword [esi + 4], eax
mov byte [esi], 4
pop esi
pop edi
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x4e8fba
cmp eax, 0x2739
jne 0x4e8fe6
push 1
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4e8fee
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x4e8fff
mov dword [esi + 4], edi
jmp 0x4e8fa0
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4e8fa3
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x4e8fa3
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x4e8fa3

Function at 0x4e9030
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x28]
xor edi, edi
mov esi, ecx
cmp ebx, 0x3b9aca00
je 0x4e908e
mov eax, dword [esp + 0x24]
mov ebp, 0x3e8
mov dword [esp + 4], edx
mul ebp
mov edi, eax
mov eax, dword [esp + 0x20]
seto cl
mul ebp
mov ebp, edx
mov dword [esp], eax
add ebp, edi
mov edi, 0xffffffff
setb al
or al, cl
jne 0x4e908a
mov ecx, 0x431bde83
mov eax, ebx
mul ecx
mov eax, dword [esp]
shr edx, 0x12
add eax, edx
adc ebp, 0
jae 0x4e90d0
mov edx, dword [esp + 4]
mov dword [esp + 8], edi
lea eax, [esp + 8]
push 4
push eax
push 0x1006
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x4e90c6
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
imul eax, edx, 0xf4240
xor ecx, ecx
mov edx, dword [esp + 4]
sub ebx, eax
mov eax, dword [esp]
setne cl
add eax, ecx
adc ebp, 0
jb 0x4e908e
xor edi, edi
neg ebp
sbb edi, edi
or edi, eax
jne 0x4e908e
mov byte [esi], 2
mov dword [esi + 4], 0x5fd054
jmp 0x4e90c8
Function at 0x4e9110
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x28]
xor edi, edi
mov esi, ecx
cmp ebx, 0x3b9aca00
je 0x4e916e
mov eax, dword [esp + 0x24]
mov ebp, 0x3e8
mov dword [esp + 4], edx
mul ebp
mov edi, eax
mov eax, dword [esp + 0x20]
seto cl
mul ebp
mov ebp, edx
mov dword [esp], eax
add ebp, edi
mov edi, 0xffffffff
setb al
or al, cl
jne 0x4e916a
mov ecx, 0x431bde83
mov eax, ebx
mul ecx
mov eax, dword [esp]
shr edx, 0x12
add eax, edx
adc ebp, 0
jae 0x4e91b0
mov edx, dword [esp + 4]
mov dword [esp + 8], edi
lea eax, [esp + 8]
push 4
push eax
push 0x1005
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x4e91a6
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
imul eax, edx, 0xf4240
xor ecx, ecx
mov edx, dword [esp + 4]
sub ebx, eax
mov eax, dword [esp]
setne cl
add eax, ecx
adc ebp, 0
jb 0x4e916e
xor edi, edi
neg ebp
sbb edi, edi
or edi, eax
jne 0x4e916e
mov byte [esi], 2
mov dword [esi + 4], 0x5fd054
jmp 0x4e91a8

Function at 0x4e91f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov edx, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov ecx, edx
sub ecx, edi
jb 0x4e925e
cmp ecx, 0x7fffffff
mov edx, 0x7fffffff
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmovb edx, ecx
mov ecx, dword [ebx]
add ecx, edi
push 0
push edx
push ecx
push dword [eax]
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4e9240
add eax, edi
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 0xc]
cmp ecx, eax
cmova eax, ecx
mov dword [ebx + 0xc], eax
jmp 0x4e924d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x4e9256
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4e9250
mov ecx, edi
push 0x62dc18
call fcn.005769d0
add esp, 4
ud2

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

Disassembly:
push edi
push esi
push eax
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp], 0
mov edi, esp
mov ecx, dword [ecx]
push 0
push 0
push 0
push edi
push edx
push eax
push ecx
call dword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x4e931e
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4e932d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
ret
Function at 0x4e9680
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x80
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push edx
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4e971e
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x4e9737
cmp ecx, 0x17
jne 0x4e9757
cmp eax, 0x1b
jbe 0x4e976d
movzx eax, word [esp + 0x12]
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov word [esi], 1
rol ax, 8
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
jmp 0x4e9767
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x4e9762
cmp eax, 0xf
jbe 0x4e977e
movzx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x14]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
jmp 0x4e9767
mov byte [esi + 4], 2
mov dword [esi + 8], 0x5fdc50
mov word [esi], 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x5fdbec
mov edx, 0x43
push 0x5fdc30
jmp 0x4e978d
mov ecx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
mov edx, 0x42
push 0x5fdbdc
call fcn.00576b20
add esp, 4
ud2

Function at 0x4e9860
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
movzx eax, byte [esp + 0xc]
mov esi, ecx
mov dword [esp], eax
mov eax, esp
push eax
push 0x8004667e
push edx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4e9885
mov byte [esi], 4
jmp 0x4e9894
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
add esp, 4
pop esi
ret

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

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x4e98d6
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4e98ec
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret
Function at 0x4e98f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4e9930
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x4e9938
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4e993e
mov byte [esi], 0
mov dword [esi + 4], ecx
mov eax, esi
pop esi
ret
Function at 0x4f03e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.004dc160
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x4f0445
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004f0320
mov edi, dword [esp]
test edi, edi
je 0x4f0454
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f0469
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x4f0461
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0
mov ecx, esp
call fcn.004dc310
mov dword [esi], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi], 0
je 0x4f0461
mov ecx, edi
mov edx, 2
call fcn.00404040
jmp 0x4f0461
Function at 0x4f21b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5630e0
mov esi, edx
mov edi, ecx
mov ecx, 8
mov edx, 4
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x640d9c]
call fcn.00403fe0
test eax, eax
je 0x4f228c
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x4f2300
push esi
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x4f222d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4f227b
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x4f2262
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x24]
call fcn.00404040
mov ecx, dword [ebp - 0x28]
mov edx, 4
call fcn.00404040
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.00576700
ud2
Function at 0x4f26f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.00565800
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x563110
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.00566f40
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x4ea150
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x4f2844
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4f277a
cmp dword [ebp - 0x2c], 0
jne 0x4f2855
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4f2855
cmp esi, 0x1000
ja 0x4f2891
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4f2877
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x4ea150
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x4f284c
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4f27f0
cmp dword [ebp - 0x2c], 0
jne 0x4f2852
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x4f27b0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x4ea150
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x4f277a
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x4f2855
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x5fd2b0
call fcn.00576d00
add esp, 4
jmp 0x4f28ac
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x5fd2b0
call fcn.00576ab0
add esp, 4
ud2
Function at 0x4f2980
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x563130
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x4f29fe
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x5fd3bc
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x5fd3e8
mov dword [esi + 0x2c], fcn.004e2380
mov dword [esi + 0x3c], 1
call fcn.005769a0
ud2

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

Disassembly:
push esi
mov eax, dword [0x640090]
test eax, eax
je 0x4f43b4
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4f434f
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4f43a9
mov eax, dword [0x640090]
test eax, eax
je 0x4f43c3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4f43ae
mov esi, eax
test eax, eax
jne 0x4f43a3
movzx eax, byte [0x640d9c]
mov ecx, 8
mov edx, 4
call fcn.00403fe0
test eax, eax
je 0x4f43db
mov dword [eax], 0x640090
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x640090]
test eax, eax
je 0x4f43cf
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x4f43b0
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x640090
call fcn.00579700
jmp 0x4f433b
mov ecx, 0x640090
call fcn.00579700
jmp 0x4f4359
mov ecx, 0x640090
call fcn.00579700
jmp 0x4f439b
mov ecx, 4
mov edx, 8
call fcn.00576700
ud2
Function at 0x4f7430
Capabilities:
Delete file

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.004dc160
add esp, 4
mov ecx, dword [esp]
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x4f7494
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.004e39c0
add esp, 4
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x4f7490
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x4f749b
mov byte [esi], 4
test ebx, ebx
jne 0x4f74ab
jmp 0x4f74b7
mov eax, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], eax
jmp 0x4f74b7
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4f74b7
mov ecx, edi
mov edx, 2
call fcn.00404040
add esp, 0x18
pop esi
pop edi
pop ebx
ret

Function at 0x4f74c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x563250
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.004dc160
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
test ecx, ecx
je 0x4f75a7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x40]
push 1
call fcn.004e39c0
add esp, 4
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
test eax, eax
je 0x4f75a4
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.004dc160
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
test ecx, ecx
je 0x4f75b1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x28]
push 1
call fcn.004e39c0
add esp, 4
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
test esi, esi
je 0x4f75ae
push 1
push esi
push dword [ebp - 0x30]
call dword [sym.imp.kernel32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x2c]
test eax, eax
je 0x4f75be
mov eax, dword [ebp - 0x34]
mov byte [eax], 4
test edi, edi
jne 0x4f75d1
jmp 0x4f75dd
mov eax, dword [ebp - 0x38]
mov dword [edi], edx
mov dword [edi + 4], eax
jmp 0x4f75ee
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x2c]
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x4f75dd
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp - 0x34]
mov byte [ecx], 0
mov dword [ecx + 4], eax
test edi, edi
je 0x4f75dd
mov ecx, esi
mov edx, 2
call fcn.00404040
test ebx, ebx
je 0x4f75ee
mov ecx, dword [ebp - 0x30]
mov edx, 2
call fcn.00404040
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f7620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x563260
movaps xmm0, xmmword [0x57d7d0]
mov edi, ecx
lea ebx, [esi + 0x20]
lea ecx, [esi + 0xc]
mov eax, dword fs:[0]
mov dword [esi + 0x50], eax
lea eax, [esi + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov word [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x30], 7
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
movups xmmword [esi + 0x20], xmm0
push ebx
push eax
call fcn.004e3300
add esp, 8
movzx eax, byte [esi + 0xc]
cmp al, 4
jne 0x4f76df
mov eax, ebx
mov ebx, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
mov dword [esi + 8], ebx
push 0x28
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x4f76fb
test byte [esi + 0x40], 0x10
jne 0x4f770d
mov byte [edi], 0
mov eax, 0x10b
jmp 0x4f7707
movzx ecx, byte [esi + 0xf]
movzx ebx, word [esi + 0xd]
mov edx, dword [esi + 0x10]
mov byte [edi + 3], cl
mov word [edi + 1], bx
mov byte [edi], al
mov dword [edi + 4], edx
jmp 0x4f7788
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], 0
mov dword [edi + 4], eax
push ebx
jmp 0x4f7782
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x58], 0
lea ecx, [esi + 0x14]
lea edx, [esi + 8]
push 0x4f77f0
call fcn.004f7830
add esp, 4
cmp byte [esi + 0x14], 4
mov ecx, dword [esi + 0x1c]
jne 0x4f7741
movsd xmm0, qword [esi + 0x14]
movsd qword [ecx], xmm0
jmp 0x4f777e
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
test al, al
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], eax
je 0x4f7758
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x4f777e
cmp edx, 1
je 0x4f7767
cmp edx, 0x57
je 0x4f7767
cmp edx, 0x32
jne 0x4f7751
mov dword [esi + 0x58], 1
lea edx, [esi + 8]
push 0x4f80b0
call fcn.004f7830
add esp, 4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret