joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b68df
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4b68e8
pop esi
ret

Function at 0x4b9410
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [esp + 0x14]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x4b9425
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
ret 8

Function at 0x4ba277
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp byte [0x7c62a6], 0
je 0x4ba31d
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push 0x6e7ca8
push eax
call fcn.00462014
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4ba2a6
mov eax, dword [eax]
push esi
push eax
call fcn.00682630
pop ecx
xor esi, esi
lea ecx, [ebp - 0x30]
push esi
push 1
call fcn.004284eb
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push str.TEMP_s
push eax
call fcn.00462014
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4ba2d7
mov eax, dword [eax]
push eax
call fcn.00682630
pop ecx
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.004284eb
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x6e7cc8
push eax
call fcn.00462014
mov eax, dword [ebp - 0x18]
add esp, 0xc
cmp dword [ebp - 4], 8
jae 0x4ba309
lea eax, [ebp - 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push esi
push 1
lea ecx, [ebp - 0x18]
call fcn.004284eb
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4c2f31
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
lea ecx, [esp + 4]
mov dword [0x7c8d08], eax
push ecx
push esi
push eax
push 0x4c2a59
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ecx
ret
Function at 0x4c3900
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6b3bdf
call fcn.00651da4
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], 0x6e8e20
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
mov dword [esi], 0x6e8e40
mov dword [esi + 8], 0x6e8e5c
mov dword [esi + 0xc], ebx
call fcn.004c8749
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov byte [esi + 0x54], bl
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], 0xf
mov byte [esi + 0x58], bl
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4c9ba8
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x6b41b5
call fcn.00651da4
sub esp, 0x2c
push ebx
push edi
xor edx, edx
mov byte [ebp - 0x38], 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
mov bl, dl
push 0x10
pop edi
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], edi
jae 0x4c9be9
lea eax, [ebp + 8]
push edx
lea ecx, [ebp - 0x18]
push ecx
push edx
push edx
push edi
push eax
call sub.DNSAPI.dll_DnsQuery_UTF8
test eax, eax
jne 0x4c9c69
push esi
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4c9c5c
cmp word [esi + 8], di
jne 0x4c9c56
xor edi, edi
test bl, bl
jne 0x4c9c53
lea eax, [esi + 0x1c]
mov dword [ebp - 0x14], eax
cmp edi, dword [esi + 0x18]
jae 0x4c9c53
mov edx, dword [eax]
push edx
push str.DEBUG:_Processing_TXT:__s_n
call fcn.0040e854
mov ecx, edx
add esp, 8
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c9c2f
lea eax, [ebp - 0x38]
sub ecx, ebx
push eax
push ecx
push edx
call fcn.004d7174
mov bl, al
inc edi
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
test bl, bl
je 0x4c9c15
push 0x10
pop edi
mov esi, dword [esi]
test bl, bl
je 0x4c9bff
push 1
push dword [ebp - 0x18]
call sub.DNSAPI.dll_DnsFree
pop esi
jmp 0x4c9c73
cmp eax, 0x251d
je 0x4c9c9a
mov dword [ebp - 0x1c], eax
test bl, bl
je 0x4c9c9a
mov byte [ebp - 0xd], 1
call fcn.00475363
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
push eax
call fcn.004d8693
mov byte [ebp - 4], 3
call fcn.004753a4
lea ecx, [ebp - 0x28]
call fcn.005f4b53
lea ecx, [ebp - 0x34]
call fcn.005f4b53
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040facf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4caf4f
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
push 0x2cc
mov dword [ebp - 8], edi
call fcn.0045c47c
mov ebx, eax
push 0x6e88c8
push 0x6d1ca8
mov dword [ebp - 4], ebx
mov dword [ebx], 0x10007
call fcn.004608c1
test eax, eax
je 0x4cafc7
push esi
push dword [ebp + 8]
push edi
push 0x1fffff
call eax
mov esi, eax
test esi, esi
je 0x4cafc6
push esi
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
je 0x4cafb8
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
je 0x4cafb8
lea eax, [ebp - 8]
push eax
call fcn.004cabed
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cf1d0
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x6b4630
call fcn.00651da4
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
mov dword [esi], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x94], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa0], ebx
and byte [esi + 0xc0], 0xf8
lea edi, [esi + 0x64]
push 0xa
pop ecx
xor eax, eax
mov byte [ebp - 4], 1
push 0x58
rep stosd dword es:[edi], eax
lea eax, [esi + 4]
push ebx
push eax
call fcn.0066c620
push 4
mov dword [esi + 0xac], 0x186a0
call fcn.00651ae6
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x4cf278
push 0x4cf30f
push 0x4cf322
push 0xf
push 0x20
push 0x18
push 0x4f
call fcn.0053a5dc
mov dword [edi], eax
jmp 0x4cf27a
mov edi, ebx
mov ecx, dword [ebp - 0xc]
mov eax, 0x100000
mov dword [esi + 0xa8], edi
mov dword [esi + 0x28], 0x53aced
mov dword [esi + 0x2c], 0x53ad0d
mov dword [esi + 0x30], 0x53acd9
mov dword [esi + 0x34], 0x53ac77
mov dword [esi + 0x38], 0x53ace4
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov eax, esi
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4dd0d6
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, ebp
push edi
lea edi, [ebx + 0xac]
push edi
call fcn.004c877d
xor edx, edx
test al, al
je 0x4dd0fd
cmp word [ebp + 0x10], dx
jne 0x4dd202
cmp dword [ebx + 4], 0xffffffff
push esi
push 5
pop ecx
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
je 0x4dd115
push edx
mov ecx, ebx
call fcn.004759f6
xor edx, edx
push edx
push edx
push 2
lea eax, [ebx + 0xac]
push eax
call fcn.00462c94
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.00477021
cmp dword [ebx + 4], 0xffffffff
je 0x4dd201
push ebp
mov ecx, ebx
call fcn.004755a6
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x4dd173
call edi
mov esi, eax
push esi
call fcn.00473c2e
push eax
push esi
push ebp
push str.UDP_port_bind_failed__A:___d___s
call fcn.0047995d
add esp, 0x10
jmp 0x4dd189
xor eax, eax
cmp word [ebp + 0x10], ax
jne 0x4dd189
mov ecx, ebx
call fcn.00476d9a
mov word [ebx + 0xbc], ax
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x14]
push 4
push eax
push 0x1002
push 0xffff
push dword [ebx + 4]
mov ebp, 0x200000
mov dword [esp + 0x28], ebp
call esi
cmp eax, 0xffffffff
jne 0x4dd1c7
call edi
push eax
push dword [esp + 0x18]
push str.UDP_setsockopt_SO_RCVBUF___d__failed:__d
call fcn.004798e6
add esp, 0xc
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
push eax
push 0x1001
push 0xffff
push dword [ebx + 4]
call esi
cmp eax, 0xffffffff
jne 0x4dd1fa
call edi
push eax
push dword [esp + 0x18]
push str.UDP_setsockopt_SO_SNDBUF___d__failed:__d
call fcn.004798e6
add esp, 0xc
mov ecx, ebx
call fcn.00476794
pop esi
pop edi
pop ebp
pop ebx
ret 4

Function at 0x4dd5ad
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4dd600
push esi
push edi
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004c868f
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0x18]
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4dd9bd
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1a0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1bc]
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], ebx
movzx eax, word [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x1c0]
movzx ebp, ax
test ecx, ecx
je 0x4dda1f
mov ebx, ecx
mov byte [esp + 0x27], 3
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4dd9fa
sub ebx, edx
lea eax, [esp + 0x29]
push ebx
push ecx
push eax
mov byte [esp + 0x34], bl
call fcn.0066a680
add esp, 0xc
mov word [esp + ebx + 0x29], bp
xor ebx, ebx
jmp 0x4dda50
push esi
call fcn.00462c94
test al, al
je 0x4dda3c
mov eax, dword [esi + 0xc]
mov byte [esp + 0x27], 1
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], bp
jmp 0x4dda50
push edi
mov byte [esp + 0x2b], 4
lea edi, [esp + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [esp + 0x3c], bp
pop edi
lea eax, [esp + 0x24]
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.004ddaf3
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
add ecx, 0x118
mov eax, dword [esp + 0x1b8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x130]
push eax
call fcn.00476cab
push ebx
push ebx
push dword [esp + 0x18]
lea eax, [esp + 0x138]
mov dword [esp + 0x18], ebx
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push 2
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1d0]
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
test esi, esi
jne 0x4ddacb
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
cmp esi, eax
je 0x4ddae7
lea ecx, [esp + 0x24]
call fcn.004ddaf3
cmp esi, eax
jg 0x4ddae3
xor eax, eax
jmp 0x4ddae7
sub esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret 0x14

Function at 0x4ddcbb
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp byte [0x7c9a60], 0
je 0x4ddcd1
mov al, 1
jmp 0x4ddd09
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4ddd07
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x4ddd01
shr eax, 8
cmp al, 2
jne 0x4ddd01
mov byte [0x7c9a60], 1
jmp 0x4ddccd
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4e82aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x18
mov eax, 0x6b5229
call fcn.00651da4
sub esp, 0xf0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp + 0x18], esi
mov ebx, dword [esi + 0x364]
call fcn.004e8455
mov esi, dword [esi + 0x140]
lea edi, [ebp + 4]
push 5
pop ecx
mov dword [ebp], 0x32716572
add esi, 8
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xfc]
call fcn.00467158
and dword [ebp - 4], 0
lea eax, [ebp]
push 0x18
push eax
lea ecx, [ebp - 0xfc]
call fcn.004670f4
push 5
pop ecx
mov esi, eax
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push 5
pop ecx
mov esi, ebx
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov ecx, edi
mov eax, dword [ebx + ecx + 0x14]
xor dword [ebp + ecx - 0x74], eax
add ecx, 4
cmp ecx, 0x14
jb 0x4e830f
movzx eax, byte [0x79eb04]
mov esi, dword [ebp + 0x18]
mov ecx, esi
shr eax, 2
not eax
mov dword [ebp - 0x58], edi
and eax, 1
mov dword [ebp - 0x60], edi
or al, 2
mov dword [ebp - 0x5c], edi
mov byte [ebp - 0x55], al
mov byte [ebx], al
lea eax, [ebp - 0x50]
push dword [esi + 0x140]
mov dword [ebp - 0x54], 0x44000000
push eax
call fcn.004e24c5
mov eax, dword [esi + 0x140]
mov ecx, esi
push 0x14
add eax, 8
push eax
call fcn.004e98c8
lea eax, [ebx + 0xc]
push eax
push 0x54
lea eax, [ebp - 0x60]
push eax
call fcn.0057e686
lea eax, [ebx + 0x114]
mov dword [ebx + 5], edi
push eax
lea ecx, [ebx + 1]
push 8
push ecx
mov dword [ecx], edi
call fcn.0057e686
push edi
push 0x7c
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.00477c5c
lea ecx, [ebp - 0xfc]
call fcn.0040e854
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x1c]
pop ebp
ret

Function at 0x4ef24c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6b55c9
call fcn.00651da4
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
xor eax, eax
mov dword [ebx], 0x6f1274
mov dword [ebp - 4], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x14]
push 5
pop ecx
lea esi, [ebp + 0xc]
mov byte [ebp - 4], 1
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov dword [ebx + 0x10], eax
push edi
call fcn.00491f86
mov ecx, eax
mov esi, edx
mov eax, dword [0x7c2940]
cdq
add ecx, eax
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x28], ecx
adc esi, edx
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], 0xea60
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x48], edi
lea esi, [ebx + 0x4c]
mov dword [esi], 0x6f116c
push str.share
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.00470203
push esi
push eax
lea ecx, [ebx + 0x50]
mov byte [ebp - 4], 4
call fcn.005416f1
push edi
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004284eb
push 0x1388
call fcn.0045c47c
mov ecx, ebx
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x8c], edi
call fcn.004f04d1
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4f16e0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x140], 0
jne 0x4f1755
mov ebx, 0x100
cmp dword [esi + 0x15c], ebx
jae 0x4f1755
lea edx, [esi + 0x144]
mov byte [esi + 0x140], 1
xor eax, eax
mov edi, edx
push edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esi + 0x158]
mov ecx, dword [esi + 0x15c]
sub ebx, ecx
mov edx, dword [esi]
mov edi, dword [esp + 0x14]
push eax
lea eax, [esi + 0x160]
mov dword [esi + 0x154], edi
add eax, ecx
mov ecx, esi
push ebx
push eax
call dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4f175d
push edi
mov byte [esi + 0x140], 0
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov al, 1
pop edi
pop esi
pop ebx
ret 4
xor al, al
jmp 0x4f1757
Function at 0x4fe40f
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x6b5f91
call fcn.00651da4
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
mov dword [esi], 0x6f2dfc
mov dword [esi + 4], ebx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebx
cmp dword [eax + 0x14], 8
jb 0x4fe435
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov ax, word [ebp + 8]
mov word [esi + 0x20], ax
mov dword [esi + 0x24], 0x6f2d8c
mov dword [esi + 0x28], ebx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
xor eax, eax
mov word [esi + 0x4c], ax
mov byte [esi + 0x54], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
lea eax, [esi + 0x64]
push 2
push eax
call fcn.006400c0
pop ecx
pop ecx
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 4
mov dword [ebp + 8], ecx
call fcn.004c7bec
lea eax, [esi + 0xa8]
push 2
push eax
call fcn.006400c0
pop ecx
pop ecx
lea ecx, [esi + 0xd8]
call fcn.004fe51e
mov dword [esi + 0x10c], ebx
xor eax, eax
mov ecx, 0x7ce684
xchg dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x502be0
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x6b6744
call fcn.00651da4
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x502c09
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x24]
jmp 0x502c0d
mov eax, ebx
mov edx, ebx
mov dword [esi], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x34]
push 7
pop edi
mov dword [esi + 4], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], ebx
cmp edi, 8
jb 0x502c4c
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
lea eax, [esi + 0x4c]
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], ebx
cmp edi, 8
jb 0x502c61
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
mov al, byte [ebp + 0x2c]
mov byte [esi + 0x65], al
mov al, byte [esi + 0x66]
and al, 0xe1
mov byte [esi + 0x64], 8
or al, 0x40
mov word [esi + 0x67], bx
mov byte [esi + 0x66], al
lea eax, [esi + 0x6c]
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], ebx
cmp edi, 8
jb 0x502c8e
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ecx
mov byte [esi + 0x90], bl
mov dword [esi + 0x94], ebx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.005034df
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0042812e
mov ecx, esi
call fcn.005051ca
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov ecx, dword [esi + 0x8c]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x502d09
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.005041a1
push eax
lea ecx, [ebp - 0x28]
call fcn.004281d1
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004284eb
lea eax, [ebp - 0x28]
push eax
call fcn.0045d460
test al, al
je 0x502d36
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x502d22
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
shl al, 5
xor al, byte [esi + 0x66]
and al, 0x20
xor byte [esi + 0x66], al
jmp 0x502d3a
and byte [esi + 0x66], 0xdf
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004284eb
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.004284eb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x28
Function at 0x5037ad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x6b68ad
call fcn.00651da4
sub esp, 0x18
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, 0x9c
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
cdq
idiv ecx
test eax, eax
je 0x50386a
push esi
xor esi, esi
mov eax, dword [edi + 4]
mov ecx, edi
add eax, esi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005041a1
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5037fa
lea eax, [ebp - 0x24]
push eax
call fcn.0045d475
test al, al
jne 0x50380e
mov eax, dword [edi + 4]
and byte [esi + eax + 0x66], 0xdf
jmp 0x503840
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x50381a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x503838
mov ecx, dword [edi + 4]
shl al, 5
xor al, byte [esi + ecx + 0x66]
and al, 0x20
xor byte [esi + ecx + 0x66], al
jmp 0x503840
mov eax, dword [edi + 4]
or byte [esi + eax + 0x66], 0x20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
push 0
push 1
call fcn.004284eb
mov eax, dword [edi + 8]
mov ecx, 0x9c
sub eax, dword [edi + 4]
inc ebx
cdq
add esi, ecx
idiv ecx
cmp ebx, eax
jb 0x5037d9
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret