joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ecac
Capabilities:
Get number of processors

Disassembly:
call 0x46ecac
add byte [edi], dh
inc esp
xor al, 0x3f
xor eax, 0x4c4833f
pop edx
cmp dword [ebp - 0xc20], 0
jne 0x46ecc8
mov dword [ebp - 0x2e0], 0
jmp 0x46ef28
mov eax, dword [ebp - 0xc20]
mov dword [ebp - 0x4d4], eax
push esi
jmp 0x46ecdc
add esi, 0xef30
add esi, 0x7fd
xor esi, 0xc405
pop esi
push ecx
push ebx
add esp, 4
xor ecx, 0x15e48
sub ecx, 0x1257c
jmp 0x46ed05
pop ecx
lea ecx, [ebp - 0x1628]
mov dword [ebp - 0xc1c], ecx
mov edx, dword [ebp - 0x4d4]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0xc18], eax
xor ecx, ecx
mov word [ebp - 0x1f8], cx
xor edx, edx
invalid
invalid
xchg ebp, eax
invalid

Function at 0x46eeae
Capabilities:
Get number of processors

Disassembly:
add esp, 4
pop esi
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x2e0], eax
jmp 0x46ef28

Function at 0x46eed9
Capabilities:
Get number of processors

Disassembly:
add esp, 4
jmp 0x46eee5
sub esi, 0x6d8e
sub esi, 0xbaab
pop esi
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ecx]
mov dword [ebp - 0x4d4], edx
mov eax, dword [ebp - 0x4d4]
cmp eax, dword [ebp - 0xc20]
je 0x46ef1e
mov ecx, dword [ebp - 0x4d4]
cmp dword [ecx + 0x30], 0
jne 0x46ecd4
mov dword [ebp - 0x2e0], 0
Function at 0x4703dc
Capabilities:
Get number of processors

Disassembly:
pop edx
cmp dword [ebp - 0xc4c], 0
jne 0x470229
mov dword [ebp - 0x2a8], 0
jmp 0x470474
mov ecx, dword [ebp - 0xc4c]
mov dword [ebp - 0x4e4], ecx
push ecx
push edi
add esp, 4
add ecx, 0xc3c8
pop ecx
push edi
push edi
add esp, 4
or edi, 0x8c1d
pop edi
push ecx
xor ecx, 0xd017
sub ecx, 0x16ad3
or ecx, 0x135dd
sub ecx, 0xb6d1
pop ecx
lea edx, [ebp - 0x1628]
mov dword [ebp - 0xc48], edx
mov eax, dword [ebp - 0x4e4]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc44], ecx
xor edx, edx
mov word [ebp - 0x204], dx
xor eax, eax
mov word [ebp - 0x38], ax
push edx
and edx, 0x11571
pop edx
push esi
push esi
add esp, 4
xor esi, 0x16a70
add esi, 0x5d38
or esi, 0x13b70
add esi, 0x10512
pop esi
push ecx
push eax
add esp, 4
sub ecx, 0x134fa
pop ecx
mov ecx, dword [ebp - 0xc44]
mov dx, word [ecx]
mov word [ebp - 0xf8a], dx
mov eax, dword [ebp - 0xc44]
add eax, 2
mov dword [ebp - 0xc44], eax
mov cx, word [ebp - 0xf8a]
mov word [ebp - 0x204], cx
mov edx, dword [ebp - 0xc48]
mov ax, word [edx]
mov word [ebp - 0xf8c], ax
mov ecx, dword [ebp - 0xc48]
add ecx, 2
mov dword [ebp - 0xc48], ecx
mov dx, word [ebp - 0xf8c]
mov word [ebp - 0x38], dx
push ebx
push eax
add esp, 4
add ebx, 0x1b12
jmp 0x47032d
and ebx, 0x4329
pop ebx
push eax
push eax
add esp, 4
and eax, 0x12e02
pop eax
push esi
push ebx
add esp, 4
sub esi, 0x125fb
pop esi
movzx eax, word [ebp - 0x38]
test eax, eax
jne 0x470369
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
sub ecx, edx
mov dword [ebp - 0x1514], ecx
jmp 0x4703c3
movzx eax, word [ebp - 0x204]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
je 0x470291
movzx edx, word [ebp - 0x204]
xor edx, 0x20
movzx eax, word [ebp - 0x38]
cmp edx, eax
je 0x470291
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
jge 0x4703ad
mov dword [ebp - 0x1510], 0xffffffff
jmp 0x4703b7
mov dword [ebp - 0x1510], 1
mov eax, dword [ebp - 0x1510]
mov dword [ebp - 0x1514], eax
cmp dword [ebp - 0x1514], 0
jne 0x47040c
push edi
call 0x4703dc
add byte [edi], bh
inc edx
xor bh, byte [edx]
aaa
dec ebp
inc ecx
xor bh, byte [ebx]
add esp, 4
add edi, 0xe958
and edi, 0x7625
and edi, 0x26eb
pop edi
push esi
push ebx
add esp, 4
add esi, 0x15095
pop esi
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x2a8], ecx
jmp 0x470474
push edi
push esi
add esp, 4
or edi, 0xcca4
and edi, 0x12184
add edi, 0x7838
pop edi
push esi
call 0x470432
add byte [edi + 0x33], cl
cmp al, 0x4b
dec ebx
xor eax, 0x4c48345
jmp 0x47043d
pop esi
mov edx, dword [ebp - 0x4e4]
mov eax, dword [edx]
mov dword [ebp - 0x4e4], eax
mov ecx, dword [ebp - 0x4e4]
cmp ecx, dword [ebp - 0xc4c]
je 0x47046a
mov edx, dword [ebp - 0x4e4]
cmp dword [edx + 0x30], 0
jne 0x470235
mov dword [ebp - 0x2a8], 0
Function at 0x470432
Capabilities:
Get number of processors

Disassembly:
pop edx
cmp dword [ebp - 0xc4c], 0
jne 0x470229
mov dword [ebp - 0x2a8], 0
jmp 0x470474
mov ecx, dword [ebp - 0xc4c]
mov dword [ebp - 0x4e4], ecx
push ecx
push edi
add esp, 4
add ecx, 0xc3c8
pop ecx
push edi
push edi
add esp, 4
or edi, 0x8c1d
pop edi
push ecx
xor ecx, 0xd017
sub ecx, 0x16ad3
or ecx, 0x135dd
sub ecx, 0xb6d1
pop ecx
lea edx, [ebp - 0x1628]
mov dword [ebp - 0xc48], edx
mov eax, dword [ebp - 0x4e4]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc44], ecx
xor edx, edx
mov word [ebp - 0x204], dx
xor eax, eax
mov word [ebp - 0x38], ax
push edx
and edx, 0x11571
pop edx
push esi
push esi
add esp, 4
xor esi, 0x16a70
add esi, 0x5d38
or esi, 0x13b70
add esi, 0x10512
pop esi
push ecx
push eax
add esp, 4
sub ecx, 0x134fa
pop ecx
mov ecx, dword [ebp - 0xc44]
mov dx, word [ecx]
mov word [ebp - 0xf8a], dx
mov eax, dword [ebp - 0xc44]
add eax, 2
mov dword [ebp - 0xc44], eax
mov cx, word [ebp - 0xf8a]
mov word [ebp - 0x204], cx
mov edx, dword [ebp - 0xc48]
mov ax, word [edx]
mov word [ebp - 0xf8c], ax
mov ecx, dword [ebp - 0xc48]
add ecx, 2
mov dword [ebp - 0xc48], ecx
mov dx, word [ebp - 0xf8c]
mov word [ebp - 0x38], dx
push ebx
push eax
add esp, 4
add ebx, 0x1b12
jmp 0x47032d
and ebx, 0x4329
pop ebx
push eax
push eax
add esp, 4
and eax, 0x12e02
pop eax
push esi
push ebx
add esp, 4
sub esi, 0x125fb
pop esi
movzx eax, word [ebp - 0x38]
test eax, eax
jne 0x470369
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
sub ecx, edx
mov dword [ebp - 0x1514], ecx
jmp 0x4703c3
movzx eax, word [ebp - 0x204]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
je 0x470291
movzx edx, word [ebp - 0x204]
xor edx, 0x20
movzx eax, word [ebp - 0x38]
cmp edx, eax
je 0x470291
movzx ecx, word [ebp - 0x204]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
jge 0x4703ad
mov dword [ebp - 0x1510], 0xffffffff
jmp 0x4703b7
mov dword [ebp - 0x1510], 1
mov eax, dword [ebp - 0x1510]
mov dword [ebp - 0x1514], eax
cmp dword [ebp - 0x1514], 0
jne 0x47040c
push edi
call 0x4703dc
add byte [edi], bh
inc edx
xor bh, byte [edx]
aaa
dec ebp
inc ecx
xor bh, byte [ebx]
add esp, 4
add edi, 0xe958
and edi, 0x7625
and edi, 0x26eb
pop edi
push esi
push ebx
add esp, 4
add esi, 0x15095
pop esi
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x2a8], ecx
jmp 0x470474
push edi
push esi
add esp, 4
or edi, 0xcca4
and edi, 0x12184
add edi, 0x7838
pop edi
push esi
call 0x470432
add byte [edi + 0x33], cl
cmp al, 0x4b
dec ebx
xor eax, 0x4c48345
jmp 0x47043d
pop esi
mov edx, dword [ebp - 0x4e4]
mov eax, dword [edx]
mov dword [ebp - 0x4e4], eax
mov ecx, dword [ebp - 0x4e4]
cmp ecx, dword [ebp - 0xc4c]
je 0x47046a
mov edx, dword [ebp - 0x4e4]
cmp dword [edx + 0x30], 0
jne 0x470235
mov dword [ebp - 0x2a8], 0
Function at 0x4b1f92
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4df028
push 0x4df020
push str.FlsAlloc
push 0x1e
call fcn.004b1dff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b1fc6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d9660]
call esi
jmp 0x4b1fcc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b2013
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4df038
push 0x4df030
push str.FlsGetValue
push 0x20
call fcn.004b1dff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b204a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d9660]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4b4917
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b45b9

Function at 0x4b4922
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b4748

Function at 0x4b53e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00499e40
mov eax, dword [0x50d024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004b069d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4b542a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4b5586
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004bfbd0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x511470]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004b580e
mov ecx, dword [esi*4 + 0x511470]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4b557f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4b557f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b557f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b580e
add esp, 0x14
test edx, edx
jl 0x4b557f
jg 0x4b54f5
test eax, eax
jb 0x4b557f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4b557f
jl 0x4b550f
cmp dword [ebp - 0x1008], eax
ja 0x4b557f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4b552d
test ebx, ebx
je 0x4b5566
cmp ecx, edi
jae 0x4b5566
mov al, byte [ecx]
cmp al, 0xd
jne 0x4b5547
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4b5553
cmp byte [ecx + 1], 0xa
jne 0x4b5553
inc ecx
jmp 0x4b5553
movzx eax, al
movsx eax, byte [eax + 0x50d990]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4b552d
cmp edx, ebx
jne 0x4b552d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4b5584
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00498bc4
leave
ret
Function at 0x4b72b0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x50d024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4b72fb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b744f
test al, al
jne 0x4b72f5
sub edx, 2
cmp edx, edi
jne 0x4b72db
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b731d
lea eax, [edi + 2]
cmp edx, eax
je 0x4b731d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b71fc
add esp, 0x10
jmp 0x4b7417
push esi
lea ecx, [ebp - 0x255]
call fcn.004b744f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b7360
push dword [ebp - 0x25c]
jmp 0x4b730d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4b739d
cmp word [ebp - 0x226], 0
je 0x4b73be
cmp word [ebp - 0x226], ax
jne 0x4b739d
cmp word [ebp - 0x224], 0
je 0x4b73be
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b71fc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b740a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b7377
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b73f2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b7417
push 0x4b702c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004be790
add esp, 0x10
jmp 0x4b73e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00498bc4
leave
ret

Function at 0x4b7d3b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b7d4c
pop esi
ret
push ebx
push edi
push esi
call fcn.004b7d04
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004af7f7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b7d74
push ebx
push esi
push edi
call fcn.0049aa90
add esp, 0xc
push 0
call fcn.004af7bd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4b8138
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b7d89
Function at 0x4bd931
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x511470]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bd971
cmp byte [ebx], 0xa
jne 0x4bd971
or byte [eax + edi + 0x28], 4
jmp 0x4bd976
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4bda74
mov al, byte [edx]
cmp al, 0x1a
je 0x4bda56
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4bd9a5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4bd9ca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4bd9d4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4bd987
jmp 0x4bda74
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bda51
cmp dword [ebp - 0xc], 0
je 0x4bda51
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x511470]
test byte [eax + edi + 0x28], 0x48
je 0x4bda2b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4bda16
mov byte [esi], dl
jmp 0x4bda27
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x511470]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4bda74
cmp byte [ebp - 1], 0xa
jne 0x4bda3a
cmp esi, ebx
jne 0x4bda3a
mov byte [esi], 0xa
jmp 0x4bda73
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b582c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4bda74
mov byte [esi], 0xd
jmp 0x4bda73
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x511470]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bda70
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bda74
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bda7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x511470]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bdac0
cmp word [esi], dx
jne 0x4bdac0
or byte [edi + eax + 0x28], 4
jmp 0x4bdac5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4bdc18
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4bdbf8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4bdb07
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4bdb3d
cmp eax, edx
jae 0x4bdb49
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4bdadf
jmp 0x4bdc18
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bdbf4
cmp dword [ebp - 0x14], 0
je 0x4bdbf4
mov eax, dword [ebx*4 + 0x511470]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4bdbcc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4bdb95
mov word [esi], cx
jmp 0x4bdbc8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x511470]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x511470]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x511470]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4bdc18
pop ebx
cmp word [ebp - 4], bx
jne 0x4bdbdd
cmp esi, dword [ebp + 0xc]
jne 0x4bdbdd
mov word [esi], bx
jmp 0x4bdc15
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b582c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4bdc18
push 0xd
jmp 0x4bdc11
mov ecx, dword [ebx*4 + 0x511470]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bdc0f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bdc18
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bf475
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bf3f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4bf5ed
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4bf5ed
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4bf59c
jg 0x4bf4ce
test eax, eax
je 0x4bf592
push 1
push 0x1000
call fcn.004b0aca
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4bf4f4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4bf589
push 0x8000
push ebx
call fcn.004ad774
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4bf520
jg 0x4bf51b
cmp ecx, 0x1000
jb 0x4bf520
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b396e
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bf565
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4bf51b
jl 0x4bf54c
test ecx, ecx
jne 0x4bf50d
push dword [ebp - 0xc]
push ebx
call fcn.004ad774
push esi
call fcn.004af7bd
add esp, 0xc
xor edi, edi
jmp 0x4bf5fe
cmp byte [edi + 0x24], 0
je 0x4bf57c
cmp dword [edi + 0x20], 5
jne 0x4bf57c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4bf587
mov edi, dword [edi + 0x18]
jmp 0x4bf589
xor edi, edi
push esi
call fcn.004af7bd
pop ecx
jmp 0x4bf5fe
test ecx, ecx
jg 0x4bf55e
jl 0x4bf59c
test eax, eax
jae 0x4bf55e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b582c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bf5bf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4bf55e
jmp 0x4bf5f6
push ebx
call fcn.004b8644
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4bf55e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4bf5fe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4bf5fb
mov edi, dword [edi + 0x18]
jmp 0x4bf5fe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b582c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x23cb039b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7bc91cbf
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4074c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push str.ldplayerAudio_start
push 0x40
lea edi, [esi + 0x40]
mov dword [edi], 0x65
push str.LDPlayerAudio::start
call fcn.0041a320
add esp, 0xc
lea eax, [esi + 0xc4]
push 0x10
push eax
push 0
push 0x84
push edi
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x84
jne 0x4075f8
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x10
push eax
lea eax, [esi + 0xc4]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi], 0x65
jne 0x40755a
mov dword [edi], 0x64
cmp byte [esi + 0xd8], 0
jne 0x40760f
cmp eax, 8
jb 0x4075bc
cmp dword [ebp - 0x104], 0xc8
jne 0x4075b0
mov eax, dword [ebp - 0x100]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x108], eax
mov eax, dword [esi + 0xd4]
mov dword [ebp - 0x10c], eax
test ecx, ecx
je 0x407620
mov eax, dword [ecx]
lea edx, [ebp - 0x108]
push edx
lea edx, [ebp - 0x10c]
push edx
call dword [eax + 8]
jmp 0x4075d3
call ebx
push eax
push str.LDPlayerAudio::readAudio_erro_1__d
push 0x5a
jmp 0x4075c6
call ebx
push eax
push str.LDPlayerAudio::readAudio_erro_2__d
push 0x5e
push str.LDPlayerAudio::start
call fcn.0041a320
add esp, 0x10
push 0x10
lea eax, [esi + 0xc4]
push eax
push 0
push 0x84
push edi
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0x84
je 0x407520
call ebx
push eax
push str.LDPlayerAudio::readAudio_3__d
push 0x62
push str.LDPlayerAudio::start
call fcn.0041a320
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423362
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_function_call_void_]
int3