joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100607e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, 0x2710
mov dword [ebp - 8], esi
test edi, edi
push 0
cmove edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0
call ebx
sub eax, esi
mov esi, dword [ebp + 8]
cmp eax, edi
ja 0x1006084d
lea ecx, [ecx]
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
call dword [eax + 0x54]
test eax, eax
js 0x10060876
cmp dword [ebp - 4], 4
je 0x1006086b
push 0x64
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1006084d
call ebx
sub eax, dword [ebp - 8]
cmp eax, edi
jbe 0x10060820
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0x50]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10062aa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
cmp esi, 0x40
jae 0x10062ace
or eax, 0xffffffff
pop esi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, 0x5a4d
mov dword [ecx + 8], edx
push edi
cmp word [edx], ax
jne 0x10062b79
mov edi, dword [edx + 0x3c]
cmp edi, esi
jae 0x10062b79
lea eax, [edi + 0x18]
cmp eax, esi
jae 0x10062b79
movzx eax, word [edi + edx + 4]
mov edi, 0x14c
cmp di, ax
jne 0x10062b11
mov dword [ecx + 0xc], 0
jmp 0x10062b22
mov edi, 0x8664
cmp di, ax
jne 0x10062b79
mov dword [ecx + 0xc], 1
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [ecx + 0xc], 0
push ebx
jne 0x10062b33
mov dword [ecx + 0x10], eax
jmp 0x10062b36
mov dword [ecx + 0x14], eax
cmp dword [eax], 0x4550
jne 0x10062b58
movzx edi, word [eax + 0x14]
movzx eax, word [eax + 6]
mov ebx, dword [edx + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + 3]
lea eax, [edi + eax*8]
add eax, ebx
cmp eax, esi
jb 0x10062b60
pop ebx
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
lea eax, [ebx + 0x18]
mov dword [ecx + 4], esi
add eax, edi
mov dword [ecx], edx
mov dword [ecx + 0x18], eax
add eax, edx
pop ebx
pop edi
mov dword [ecx + 0x1c], eax
xor eax, eax
pop esi
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x10062b80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10062c68
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x200
jb 0x10062c54
mov ecx, 0x400000
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 0xc], ecx
lea eax, [ecx + 1]
push eax
call fcn.1011bc79
mov esi, eax
add esp, 4
test esi, esi
je 0x10062c54
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10062c54
push 0x10062c80
push 0x10062ca0
push edi
push 0x104
lea eax, [ebp - 4]
push 0x1018a1f8
push eax
call fcn.10062210
add esp, 0x18
test eax, eax
jne 0x10062c54
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call fcn.10062310
add esp, 0xc
push dword [ebp - 4]
test eax, eax
je 0x10062c42
call fcn.100622a0
add esp, 4
jmp 0x10062c54
call fcn.100625d0
push dword [ebp - 4]
mov edi, eax
call fcn.100622a0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10062c68
push esi
call fcn.1011bc41
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10062f40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x100654d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101498d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 8]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
push 8
mov dword [ebp - 4], 0
call fcn.1011a4b2
mov ecx, dword [ebp + 0xc]
push eax
push 0
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [eax], edi
push 0x10065400
mov dword [edi + 0x20], ecx
call fcn.1011f063
add esp, 0x10
mov dword [edi + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10067290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014a36b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
mov dword [esi], 0x101561b0
call fcn.1011a4b2
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x100672e5
push 1
call fcn.101165db
add esp, 4
mov dword [edi], eax
jmp 0x100672e7
xor edi, edi
lea eax, [esi + 4]
mov dword [esi + 0x34], edi
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100679c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014a481
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1018d0d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x10156238
mov dword [edi + 4], 0x1015623c
mov dword [edi + 8], 0x10156244
cmp dword [edi + 0x270], 8
mov dword [ebp - 4], 1
jb 0x10067a1e
push dword [edi + 0x25c]
call fcn.1011a1ea
add esp, 4
xor eax, eax
mov dword [edi + 0x270], 7
mov dword [edi + 0x26c], 0
or ecx, 0xffffffff
mov word [edi + 0x25c], ax
mov edx, dword [edi + 0x254]
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10067a5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea esi, [edi + 0x200]
mov ecx, esi
call fcn.1003ee10
push esi
mov dword [esi], 0x1016818c
call fcn.101167d4
add esp, 4
lea esi, [edi + 0x150]
mov ecx, esi
call fcn.1003ee10
push esi
mov dword [esi], 0x1016818c
call fcn.101167d4
add esp, 4
cmp dword [edi + 0xe0], 8
jb 0x10067aaa
push dword [edi + 0xcc]
call fcn.1011a1ea
add esp, 4
xor eax, eax
mov dword [edi + 0xe0], 7
mov dword [edi + 0xdc], 0
mov word [edi + 0xcc], ax
cmp dword [edi + 0xc8], 8
jb 0x10067ade
push dword [edi + 0xb4]
call fcn.1011a1ea
add esp, 4
push 0x10067920
xor eax, eax
mov dword [edi + 0xc8], 7
push 0xd
mov dword [edi + 0xc4], 0
mov word [edi + 0xb4], ax
lea eax, [edi + 0x4c]
push 8
push eax
call fcn.1011d2ec
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [edi + 0x10], 0x101561f0
lea esi, [edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10067b42
push 0xabcd
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 0x14], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100684a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
je 0x10068551
mov eax, dword [ebp + 0xc]
test al, 7
jne 0x10068551
xor ecx, ecx
mov byte [ebp - 0xc], 0
push esi
xor esi, esi
mov dword [ebp - 0xb], ecx
mov word [ebp - 7], cx
mov byte [ebp - 5], cl
test eax, eax
je 0x10068550
push ebx
push 8
add edi, esi
lea eax, [ebp - 0xc]
push edi
push 8
push eax
call fcn.1011c712
mov cl, byte [ebp - 0xc]
add esp, 0x10
mov al, cl
xor al, 0x6b
mov byte [edi], al
mov edi, dword [ebp - 0x10]
movzx eax, byte [ebp - 0xb]
xor al, cl
mov byte [edi + esi + 1], al
movzx eax, byte [ebp - 0xa]
xor al, cl
mov byte [edi + esi + 2], al
mov al, byte [ebp - 9]
xor al, 0x20
mov byte [edi + esi + 3], al
mov al, byte [ebp - 8]
xor al, 0x3a
mov byte [edi + esi + 4], al
mov al, byte [ebp - 7]
xor al, byte [ebp - 9]
mov byte [edi + esi + 5], al
movzx eax, byte [ebp - 6]
xor al, byte [ebp - 8]
mov byte [edi + esi + 6], al
movzx eax, byte [ebp - 5]
xor al, byte [ebp - 7]
mov byte [edi + esi + 7], al
add esi, 8
cmp esi, dword [ebp + 0xc]
jb 0x100684e2
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
Function at 0x10069a10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0x200
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
test eax, eax
je 0x10069a38
push eax
call fcn.1011bfcc
add esp, 4
mov dword [edi], esi
mov eax, dword [ebp + 8]
lea ebx, [edi + 4]
mov dword [ebx], esi
test eax, eax
je 0x10069b51
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10069b51
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebx], esi
cmp esi, 0xffffffff
je 0x10069b42
and eax, 7
sub esi, eax
add esi, 8
push esi
mov dword [ebp - 0x10], esi
call fcn.101160b2
mov ebx, eax
add esp, 4
mov dword [edi], ebx
test ebx, ebx
je 0x10069b3f
cmp dword [edi + 4], 0x200
lea ecx, [edi + 4]
push 0
lea eax, [ebp - 8]
cmovbe eax, ecx
lea ecx, [ebp - 4]
push ecx
push dword [eax]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10069b09
mov esi, dword [ebp + 8]
lea esp, [esp]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10069b06
mov ecx, dword [edi + 4]
lea edx, [ebp - 0xc]
add ebx, eax
lea eax, [ebp - 4]
sub ecx, ebx
add ecx, dword [edi]
push 0
push eax
cmp ecx, 0x200
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
cmovbe eax, edx
push dword [eax]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10069ad0
mov esi, dword [ebp - 0x10]
mov eax, dword [edi]
sub ebx, eax
cmp ebx, dword [edi + 4]
jne 0x10069b3f
push esi
push eax
call fcn.100684a0
mov ecx, dword [edi + 4]
lea ebx, [edi + 4]
add esp, 8
cmp esi, ecx
je 0x10069b38
mov eax, dword [edi]
sub esi, ecx
push esi
add eax, ecx
push 0
push eax
call fcn.1011a400
add esp, 0xc
mov esi, 1
jmp 0x10069b44
lea ebx, [edi + 4]
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x10069b6c
mov eax, dword [edi]
test eax, eax
je 0x10069b66
push eax
call fcn.1011bfcc
add esp, 4
mov dword [edi], 0
mov dword [ebx], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1006a4b0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
mov byte [esi + 0xc], 1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x14], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
je 0x1006a4df
call ebx
push 0xffffffffffffffff
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1006a4e1
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1006a502
push 0xabcd
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x14], 0
push edi
call ebx
mov ecx, esi
mov dword [esi + 0x258], 0
call fcn.100683c0
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x1006a520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014a7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1018d0d0]
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 dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
lea edi, [ecx + 0x10]
mov dword [ebp - 0x30], eax
lea esi, [edi + 8]
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [edi + 4], ebx
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
mov ebx, dword [ebp - 0x2c]
je 0x1006a58e
push 0xffffffffffffffff
mov ecx, edi
mov byte [ebx + 0xc], 1
call fcn.1006a6c0
mov byte [ebx + 0xc], 0
mov edx, dword [ebp - 0x30]
cmp word [edx], 0
jne 0x1006a59b
xor ecx, ecx
jmp 0x1006a5af
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006a5a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0xcc]
call fcn.1000c2b0
mov esi, dword [ebp - 0x34]
cmp word [esi], 0
jne 0x1006a5c9
xor ecx, ecx
jmp 0x1006a5df
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006a5d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebx + 0xb4]
call fcn.1000c2b0
push 0
push 0x10178415
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10002130
lea ecx, [ebx + 0x1b0]
mov dword [ebp - 4], 0
call fcn.10003ab0
push dword [ebx + 0x1ec]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebx + 0x1b0]
push eax
call fcn.10005700
cmp dword [ebp - 0x14], 0x10
jb 0x1006a650
push dword [ebp - 0x28]
call fcn.1011a1ea
add esp, 4
lea esi, [edi + 8]
push esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x34], 1
push 8
mov dword [ebp - 4], 1
call fcn.1011a4b2
mov ecx, dword [ebp + 0x10]
push eax
push 0
mov dword [eax], edi
mov dword [eax + 4], ecx
push 0x10065400
mov dword [edi + 0x20], ebx
call fcn.1011f063
add esp, 0x10
mov dword [edi + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
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.1011a3e5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1006a6c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
je 0x1006a6ef
call ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1006a6f1
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 4]
test eax, eax
je 0x1006a712
push 0xabcd
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 4], 0
push esi
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10070020
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014ade4
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x43c], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push eax
mov dword [esi + 0x10], eax
push esi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x10070090
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10070088
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x10070090
push eax
call fcn.1003dd50
lea edi, [esi + 0x18]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov word [edi], ax
push 0x40e
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
mov byte [ebp - 4], 1
call fcn.1011a400
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10070173
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x420], ax
jne 0x10070114
xor ecx, ecx
jmp 0x1007012f
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10070120
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.1000c2b0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
cmp edi, eax
je 0x1007015c
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.1000bf70
cmp dword [ebp - 0x424], 8
jb 0x10070173
push dword [ebp - 0x438]
call fcn.1011a1ea
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
Function at 0x10070740
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014aee6
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x1018d0d0]
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]
push esi
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x19c], 1
push 0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.100713c0
mov edi, eax
test edi, edi
je 0x10070854
push 0xfde9
lea eax, [ebp - 0x90]
push ebx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.10048c20
push dword [ebp - 0x94]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.100754e0
mov ebx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x100707ee
push eax
call fcn.1011bc41
add esp, 4
test ebx, ebx
je 0x10070854
push str.path
mov ecx, ebx
call fcn.10074d10
lea ecx, [ebp - 0x194]
push 0xfde9
mov dword [ebp - 0x198], ecx
lea ecx, [ebp - 0x198]
push eax
call fcn.10069910
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x198]
lea ecx, [ebp - 0x194]
cmp eax, ecx
je 0x10070840
push eax
call fcn.1011bc41
add esp, 4
push ebx
mov ecx, edi
call fcn.10075d20
push edi
mov ecx, esi
call fcn.100716b0
mov bl, al
jmp 0x10070856
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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 - 0x10]
xor ecx, ebp
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret 4

Function at 0x10070880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1018d0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10070915
mov eax, dword [ebp + 0xc]
test al, 7
jne 0x10070915
xor ecx, ecx
mov byte [ebp - 0xc], 0
push esi
xor esi, esi
mov dword [ebp - 0xb], ecx
mov word [ebp - 7], cx
mov byte [ebp - 5], cl
test eax, eax
je 0x10070914
push edi
push 8
lea edi, [ebx + esi]
push edi
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.1011c712
mov cl, byte [ebp - 0xc]
add esp, 0x10
xor cl, 0x6b
mov al, cl
mov byte [edi], cl
xor cl, byte [ebp - 0xa]
xor al, byte [ebp - 0xb]
mov byte [ebx + esi + 2], cl
mov cl, byte [ebp - 9]
mov byte [ebx + esi + 1], al
xor cl, 0x20
mov al, byte [ebp - 8]
mov byte [ebx + esi + 3], cl
xor al, 0x3a
xor cl, byte [ebp - 7]
mov byte [ebx + esi + 4], al
xor al, byte [ebp - 6]
mov byte [ebx + esi + 5], cl
xor cl, byte [ebp - 5]
mov byte [ebx + esi + 6], al
mov byte [ebx + esi + 7], cl
add esi, 8
cmp esi, dword [ebp + 0xc]
jb 0x100708b7
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1011a3e5
mov esp, ebp
pop ebp
ret
Function at 0x100709b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x28], 0
jne 0x100709bf
xor al, al
pop ebp
ret 4
push esi
mov esi, dword [ebp + 8]
add ecx, 0x18
push edi
cmp esi, ecx
je 0x100709d7
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esi
call fcn.1000bf70
push 1
push 0x10178f30
mov ecx, esi
call fcn.1000c1d0
push 6
push 0x10153398
mov ecx, esi
call fcn.1000c1d0
cmp dword [esi + 0x14], 8
jb 0x100709fd
mov eax, dword [esi]
jmp 0x100709ff
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
push 0xa
push str.User_Data
mov ecx, esi
call fcn.1000c1d0
cmp dword [esi + 0x14], 8
jb 0x10070a22
mov eax, dword [esi]
jmp 0x10070a24
mov eax, esi
push 0
push eax
call edi
push 7
push str._netbuy
mov ecx, esi
call fcn.1000c1d0
cmp dword [esi + 0x14], 8
jb 0x10070a41
mov eax, dword [esi]
jmp 0x10070a43
mov eax, esi
push 0
push eax
call edi
push 1
push 0x10178f30
mov ecx, esi
call fcn.1000c1d0
pop edi
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x10070e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], 0x200
mov dword [ebp - 4], 0
push edi
mov edi, ecx
test eax, eax
je 0x10070ed4
cmp dword [edi], 0
je 0x10070ed4
push ebx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10070eca
push esi
mov esi, dword [edi + 4]
mov dword [ebp + 8], esi
test esi, esi
je 0x10070eb5
push 0
lea eax, [ebp - 4]
cmp esi, 0x200
push eax
lea ecx, [ebp - 8]
lea eax, [ebp + 8]
cmovae eax, ecx
push dword [eax]
mov eax, dword [edi + 4]
sub eax, esi
add eax, dword [edi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10070eb5
sub esi, dword [ebp - 4]
mov dword [ebp + 8], esi
jne 0x10070e83
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 4
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4