joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c2ab0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
movaps xmm0, xmmword [0x607430]
mov eax, dword [ebp + 8]
mov esi, ecx
lea edi, [esp + 0x18]
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0xc]
movups xmmword [esp + 0x24], xmm0
mov byte [esp + 0x34], 1
push edi
push eax
call fcn.005d8dc0
add esp, 8
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0xc], 1
jne 0x5c2b59
cmp bl, 3
jne 0x5c2b51
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax]
add esp, 4
mov ecx, dword [edi + 4]
cmp dword [ecx + 4], 0
je 0x5c2b43
mov eax, dword [edi]
cmp dword [ecx + 8], 9
jb 0x5c2b35
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
mov dword [esi], 0
jmp 0x5c2bd4
lea edi, [esp + 0x18]
mov edx, ebx
mov ecx, edi
call fcn.005d8fc0
cmp dword [esp + 0x18], 1
jne 0x5c2bb4
cmp byte [esp + 0x1c], 3
jne 0x5c2bc8
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax]
add esp, 4
mov ecx, dword [edi + 4]
cmp dword [ecx + 4], 0
je 0x5c2ba4
mov eax, dword [edi]
cmp dword [ecx + 8], 9
jb 0x5c2b96
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
jmp 0x5c2bc8
mov eax, dword [esp + 0x28]
xor eax, 2
or eax, dword [esp + 0x2c]
je 0x5c2bc8
cmp dword [esp + 0x24], 0
je 0x5c2bdc
mov dword [esi], 0
push ebx
call sub.KERNEL32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetCurrentProcess
push 2
push 0
push 0
push edi
push eax
push ebx
push eax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x5c2c5f
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x14], eax
push eax
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x5c2c69
mov edi, eax
push dword [esp + 4]
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov dword [esp + 8], eax
push edi
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x5c2c69
mov eax, dword [esp]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov ecx, dword [esp + 4]
mov dword [esi + 0xc], ecx
mov dword [esi], 1
jmp 0x5c2bce
call sub.KERNEL32.dll_GetLastError
jmp 0x5c2bc8
mov dword [esi], 0
push dword [esp]
call sub.KERNEL32.dll_CloseHandle
jmp 0x5c2bce
Function at 0x5d06c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + 0xc]
call 0x5d06db
pop eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], eax
test ecx, ecx
mov dword [esp + 0x10], ecx
je 0x5d0d2a
mov esi, dword [esp + 0x30]
mov edx, 0xffffffff
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, ebx
mov dword [esp + 0x78], eax
sub eax, edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x28], ebx
shl cl, 3
mov dword [esp + 0x60], eax
mov eax, 0xffffffff
neg cl
shr edx, cl
test cl, 0x20
mov ecx, edx
cmove edx, eax
mov eax, 0
cmovne ecx, eax
mov al, byte [esi + 0x14]
mov dword [esp + 0x80], edx
lea edx, [esi + 0xc]
mov dword [esp + 0x84], ecx
lea ecx, [esi + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov byte [esp + 0x44], al
movzx eax, bl
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x34], eax
add eax, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x40], eax
cmp byte [esp + 0x44], 0
je 0x5d0840
mov ebx, dword [ecx]
mov esi, dword [esp + 0x10]
mov eax, ecx
lea edi, [ebx + 1]
lea ecx, [esi - 1]
mov dword [eax], edi
mov dword [edx], ecx
movzx eax, byte [ebx]
cmp eax, 7
ja 0x5d0dd5
mov eax, dword [eax*4 + 0x5d1a04]
add eax, dword [esp + 0x24]
jmp eax
mov edx, ebx
mov dword [esp + 0x20], 0x17
dec dl
cmp dl, 7
ja 0x5d10d3
movzx edi, dl
mov eax, dword [edi*4 + 0x5d1aa4]
add eax, dword [esp + 0x24]
jmp eax
mov ecx, dword [esp + 4]
mov dword [ecx], str._cargo_registry_src_github.com_1ecc6299db9ec823_utfx_0.1.0_src_ucstr.rs
mov dword [edx], 0
mov edx, dword [esp + 0x38]
shl ebx, 8
movzx eax, al
or eax, ebx
mov dword [edx + 8], eax
mov dword [edx + 0xc], esi
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], 0
mov dword [edx + 4], 0
mov dword [edx], 1
jmp 0x5d0d49
mov eax, dword [esp + 0x38]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0x30
jmp 0x5d0cdf
movzx ebx, byte [esp + 0x28]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
xor esi, esi
jmp 0x5d0ce3
Function at 0x5dcc80
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov edi, ecx
push 0x6f1120
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov esi, dword [edi]
test esi, esi
jne 0x5dcd05
mov ebx, dword [edi + 4]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x5dcd19
mov esi, eax
test ebx, ebx
je 0x5dccfd
mov eax, dword [0x6f1130]
test eax, eax
jne 0x5dccc5
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5dcd32
mov dword [0x6f1130], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5dcd32
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], 0
mov ecx, eax
mov eax, dword [0x6f1144]
nop word cs:[eax + eax]
mov dword [ecx + 8], eax
lock cmpxchg dword [0x6f1144], ecx
jne 0x5dccf0
mov eax, esi
test esi, esi
xchg dword [edi], eax
je 0x5dcd43
push 0x6f1120
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov eax, esi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x6d5c84
mov edx, 0x2e
push 0x6d5ce4
call fcn.0045aec0
add esp, 4
ud2
mov ecx, 0xc
mov edx, 4
call fcn.0040a640
ud2
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], 0x6d4f60
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x54], 0x6d5100
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], str._cargo_registry_src_github.com_1ecc6299db9ec823_utfx_0.1.0_src_ucstr.rs
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0x45b0b0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], 1
push eax
push ecx
call fcn.005c0310
add esp, 8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
call fcn.00486c70
mov ecx, 7
int 0x29
ud2
Function at 0x5df150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x428
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x434]
push 0x400
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x6dd42c]
mov esi, 0x200
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0
cmp esi, 0x201
jae 0x5df1be
jmp 0x5df1f0
cmp edi, esi
mov esi, edi
jb 0x5df235
cmp esi, 0x201
jb 0x5df1f0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov eax, esi
sub eax, edx
sub ecx, edx
cmp ecx, eax
jb 0x5df1db
mov edi, dword [ebp - 0x10]
mov ebx, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
jmp 0x5df1fb
lea ecx, [ebp - 0x24]
push eax
call fcn.005d96d0
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
jmp 0x5df1ce
lea edi, [ebp - 0x434]
mov ebx, 0x200
mov dword [ebp - 0x18], edi
push 0
call sub.KERNEL32.dll_SetLastError
push edi
push esi
call sub.KERNEL32.dll_GetTempPathW
mov edi, eax
test eax, eax
jne 0x5df21b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x5df260
cmp edi, esi
jne 0x5df1b0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x5df1b0
add esi, esi
cmp esi, 0x201
jb 0x5df1f0
jmp 0x5df1be
cmp edi, ebx
ja 0x5df2e0
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push edi
call fcn.005c2940
add esp, 4
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor ebx, ebx
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x5df272
jmp 0x5df295
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor edi, edi
mov bl, 1
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5df295
cmp dword [ebp - 0x10], 0
je 0x5df295
and eax, 0x7fffffff
je 0x5df295
push dword [ebp - 0x10]
push 0
push dword [0x6f1130]
mov dword [ebp - 0x14], ecx
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [ebp - 0x14]
test bl, bl
jne 0x5df2af
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
add esp, 0x428
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x434]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x6d5a10
push 0x6d3888
push eax
call fcn.0045d480
add esp, 0xc
ud2
mov ecx, edi
mov edx, ebx
push 0x6d5e10
call fcn.0045ab50
add esp, 4
ud2
Function at 0x5e0250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
movaps xmm0, xmmword [0x6074c0]
lea esi, [ebp - 0x3c]
mov eax, edx
mov edx, ecx
mov dword [ebp - 0x20], 0
mov word [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x48]
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x1f], 1
mov byte [ebp - 0x1c], 1
mov byte [ebp - 0x1d], 1
push esi
push eax
call fcn.005d8dc0
add esp, 8
mov ebx, dword [ebp - 0x44]
cmp dword [ebp - 0x48], 1
jne 0x5e02b2
mov esi, dword [ebp - 0x40]
mov edi, ebx
jmp 0x5e0361
mov edi, dword [ebp + 0xc]
mov al, 4
test edi, edi
je 0x5e0334
mov esi, dword [ebp + 8]
mov ecx, 0x6d65f0
mov eax, 0x6d65f0
mov dword [ebp - 0x18], ebx
shl ecx, 0x18
shr eax, 8
or ecx, 0x17
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
jmp 0x5e02f9
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov ebx, eax
call fcn.005dc340
cmp al, 0x23
jne 0x5e0340
mov ebx, dword [ebp - 0x18]
test edi, edi
je 0x5e032a
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
push edi
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x5e02e0
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x5e0336
mov eax, edi
sub eax, ecx
jb 0x5e036d
add esi, ecx
mov edi, eax
mov ebx, dword [ebp - 0x18]
test edi, edi
jne 0x5e02f9
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov al, 4
jmp 0x5e034f
jmp 0x5e034f
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov al, 2
jmp 0x5e034f
mov esi, ebx
shl ebx, 0x18
xor eax, eax
mov ecx, ebx
mov ebx, dword [ebp - 0x18]
shr esi, 8
shld esi, ecx, 8
shl ecx, 8
movzx edi, al
or edi, ecx
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
mov edx, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, edi
push 0x6d4978
call fcn.0045a820
add esp, 4
ud2

Function at 0x5e1ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 8]
call fcn.005e1cb1
Function at 0x5ecf00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx + 0x10], 0
mov edi, edx
jne 0x5ecfdd
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x5ecf2f
mov eax, dword [ebx + 8]
xor edx, edx
mov ecx, eax
neg ecx
cmp ecx, 0xf
jbe 0x5ecfaa
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x5ecfc6
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x5ecf68
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x5ecf80
jmp 0x5ecf8c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x5ecf8c
cmp eax, 0x3e5
jne 0x5ecf9c
mov ecx, 1
xor eax, eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov byte [esi + 1], 1
jmp 0x5ecf90
mov byte [esi + 1], 0
xor eax, eax
mov byte [esi], al
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov al, 1
jmp 0x5ecf92
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.005c1170
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x5ecf3a
mov ecx, ebx
push 1
call fcn.005c1170
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x5ecf3a
add edi, 0x10
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov ecx, edi
call fcn.005ed0b0
ud2
Function at 0x5eeb70
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [0x6050dc]
test eax, eax
je 0x5eeb90
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x5eeba5
jmp 0x5eebb5
mov ecx, 0x6050dc
call fcn.005dcc80
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x5eebb5
mov esi, eax
mov eax, dword [eax]
xor eax, 1
or eax, dword [esi + 4]
je 0x5eec66
mov eax, dword [0x6050dc]
test eax, eax
je 0x5eec6b
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x5eec84
mov esi, eax
test eax, eax
jne 0x5eec34
mov eax, dword [0x6f1130]
test eax, eax
jne 0x5eebf2
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5eece7
mov dword [0x6f1130], eax
push 0x20
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5eece7
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x6050dc
mov esi, eax
mov eax, dword [0x6050dc]
test eax, eax
jne 0x5eec2d
mov ecx, 0x6050dc
call fcn.005dcc80
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
xorps xmm0, xmm0
lea eax, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
push 2
push 0x10
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x5eec8e
movaps xmm0, xmmword [esp + 0x30]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x5eec86
mov ecx, 0x6050dc
call fcn.005dcc80
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x5eebd1
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0x6d5bec
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov edx, 0x6d5c18
mov dword [esp + 0xc], fcn.005dde30
mov dword [esp + 0x2c], 1
call fcn.0045a2c0
ud2
mov ecx, 0x20
mov edx, 8
call fcn.0040a640
ud2

Function at 0x5ef0d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, edx
mov edx, ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.005d90e0
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x5ef100
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, esi
shld esi, ebx, 0x18
shr edi, 8
jmp 0x5ef154
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
push esi
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x5ef12a
mov bl, 4
test edi, 0x7fffffff
je 0x5ef128
push esi
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
jmp 0x5ef154
mov ebx, esi
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, edi
mov edi, esi
shl esi, 0x18
shr edi, 8
test eax, 0x7fffffff
je 0x5ef152
push ebx
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
xor ebx, ebx
shld edi, esi, 8
shl esi, 8
movzx eax, bl
or eax, esi
mov edx, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5ef170
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, edx
mov edx, ecx
lea ecx, [ebp - 0x20]
push eax
call fcn.005d90e0
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 1
mov ebx, dword [ebp - 0x18]
jne 0x5ef1a7
mov esi, eax
mov ecx, eax
shrd esi, ebx, 8
shr ebx, 8
mov edi, ebx
jmp 0x5ef271
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.005d90e0
add esp, 4
cmp dword [ebp - 0x20], 1
jne 0x5ef1ff
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edi, esi
shld esi, ecx, 0x18
shr edi, 8
mov eax, dword [ebp - 0x10]
test ebx, ebx
je 0x5ef271
test eax, eax
je 0x5ef271
add ebx, ebx
je 0x5ef271
push eax
push 0
push dword [0x6f1130]
mov ebx, ecx
call sub.KERNEL32.dll_HeapFree
mov ecx, ebx
jmp 0x5ef271
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
push 1
push esi
push dword [ebp - 0x10]
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x5ef224
test edi, 0x7fffffff
jne 0x5ef243
mov cl, 4
test ebx, ebx
jne 0x5ef257
jmp 0x5ef271
mov dword [ebp - 0x24], esi
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, edi
mov edi, esi
shl esi, 0x18
shr edi, 8
test eax, 0x7fffffff
jne 0x5ef287
xor ecx, ecx
jmp 0x5ef1d0
push esi
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
mov cl, 4
test ebx, ebx
je 0x5ef271
test ebx, 0x7fffffff
je 0x5ef271
push dword [ebp - 0x10]
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
mov cl, 4
shld edi, esi, 8
shl esi, 8
movzx eax, cl
or eax, esi
mov edx, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp - 0x24]
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
xor ecx, ecx
jmp 0x5ef1d0

Function at 0x5ef2a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, edx
mov edx, ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.005d90e0
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x5ef2d0
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, esi
shld esi, ebx, 0x18
shr edi, 8
jmp 0x5ef324
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
push esi
call sub.KERNEL32.dll_RemoveDirectoryW
test eax, eax
je 0x5ef2fa
mov bl, 4
test edi, 0x7fffffff
je 0x5ef2f8
push esi
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
jmp 0x5ef324
mov ebx, esi
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, edi
mov edi, esi
shl esi, 0x18
shr edi, 8
test eax, 0x7fffffff
je 0x5ef322
push ebx
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
xor ebx, ebx
shld edi, esi, 8
shl esi, 8
movzx eax, bl
or eax, esi
mov edx, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5ef7c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov esi, ecx
mov ecx, esp
push dword [ebp + 8]
call fcn.005d90e0
add esp, 4
mov ebx, dword [esp + 4]
cmp dword [esp], 1
mov edi, dword [esp + 8]
jne 0x5ef7fa
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov dword [esi], 1
jmp 0x5ef8bd
mov edx, dword [ebp + 0xc]
mov ecx, esp
push dword [ebp + 0x10]
call fcn.005d90e0
add esp, 4
cmp dword [esp], 1
jne 0x5ef83d
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
test edi, edi
je 0x5ef8bd
test ebx, ebx
je 0x5ef8bd
add edi, edi
jne 0x5ef8af
jmp 0x5ef8bd
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x18], ecx
push 0
push 0
lea ecx, [esp + 8]
push ecx
push 0x5ef900
mov dword [esp + 0x24], eax
push eax
push ebx
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x5ef8c5
mov eax, dword [esp]
mov ecx, dword [esp + 4]
test dword [esp + 0x18], 0x7fffffff
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi], 0
je 0x5ef8a3
push dword [esp + 0x14]
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
test edi, edi
je 0x5ef8bd
test edi, 0x7fffffff
je 0x5ef8bd
push ebx
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
test dword [esp + 0x18], 0x7fffffff
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], 1
je 0x5ef824
push dword [esp + 0x14]
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
jmp 0x5ef824

Function at 0x5efa80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x6f1130]
mov ebx, edx
mov esi, ecx
test eax, eax
jne 0x5efaa6
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5efb4b
mov dword [0x6f1130], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5efb4b
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add ebx, 0xfffe
and ebx, 0xffff0001
mov dword [edi], ecx
mov dword [edi + 4], eax
push 0
push 0x10000
push edi
push 0x5efb60
push ebx
push 0
call sub.KERNEL32.dll_CreateThread
test eax, eax
je 0x5efaf1
mov dword [esi + 4], eax
xor eax, eax
jmp 0x5efb41
mov dword [ebp - 0x10], esi
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push ebx
call dword [esi]
add esp, 4
cmp dword [esi + 4], 0
je 0x5efb1c
cmp dword [esi + 8], 9
jb 0x5efb0e
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
mov esi, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
mov dword [esi], eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 8
mov edx, 4
call fcn.0040a640
ud2
Function at 0x5efcb0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ebx, dword [ebp + 8]
cmp edx, 1
jne 0x5efcca
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], ebx
jmp 0x5efdae
mov dword [ebp - 0x10], ecx
mov eax, dword [0x6f1134]
cmp eax, 3
jne 0x5efdbf
cmp dword [ebx], 1
mov eax, 0x17
mov esi, 2
cmove esi, eax
push 0x81
push 0
push 0
push 0
push 2
push esi
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x5efd36
mov edi, eax
cmp dword [ebx], 1
mov eax, 0x1c
mov ecx, 0x10
cmove ecx, eax
add ebx, 4
push ecx
push ebx
push edi
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x5efd81
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [eax], 0
jmp 0x5efdb7
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x5efd49
cmp eax, 0x2739
jne 0x5efda6
push 1
push 0
push 0
push 0
push 2
push esi
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x5efda1
mov edi, eax
push 0
push 1
push eax
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x5efd05
call sub.KERNEL32.dll_GetLastError
xor esi, esi
mov ebx, eax
push edi
call sub.WS2_32.dll_closesocket
mov eax, ebx
jmp 0x5efda8
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx], 1
push edi
call sub.WS2_32.dll_closesocket
jmp 0x5efdb7
call sub.WS2_32.dll_WSAGetLastError
xor esi, esi
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
mov dword [ecx], 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.005e5730
jmp 0x5efcdb