joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456370
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x4f2008]
mov edi, eax
add esp, 8
test edi, edi
je 0x4563c7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4563df
cmp esi, ebx
je 0x4563df
cmp esi, 0x8000
ja 0x4563df
cmp esi, ebx
jb 0x4563d8
push esi
push edi
call dword [0x4f2008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x456390
push ebp
call dword [0x4f2004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x4f2004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x464b80
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x140]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x464bcc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0043fae0
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.004647a0
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x464d10
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x14], 0x1f
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x11c]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 4], eax
jne 0x464e7c
push ebp
push esi
lea ebp, [ecx + 0x1cb4]
push edi
lea edi, [ecx + 0x1eb4]
mov eax, ebp
mov dword [edi], ebp
cmp ebp, edi
jae 0x464d54
lea eax, [ebp + 1]
mov byte [ebp], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x464d68
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x464d68
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ecx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
shr eax, 8
mov dword [esp + 0x14], eax
movzx ecx, word [ecx + 0x1caa]
push ecx
call esi
mov ecx, dword [edi]
mov edx, eax
shr edx, 8
mov dword [esp + 0x18], eax
cmp ecx, edi
jae 0x464de5
mov eax, dword [esp + 0x24]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x464de5
mov eax, dword [esp + 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x464de5
mov eax, dword [esp + 0x18]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x464de5
mov byte [ecx], dl
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x464de5
mov byte [ecx], 0xff
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x464de5
mov byte [ecx], 0xf0
mov ecx, dword [edi]
inc ecx
mov esi, dword [esp + 0x20]
mov dword [edi], ebp
mov dword [esi + 0x1eb8], ecx
lea eax, [esi + 0x1cb6]
sub ecx, ebp
sub ecx, 2
push ecx
push eax
push 0x3e
push ebx
call fcn.004648a0
mov eax, dword [esp + 0x20]
add esp, 0x10
push 0
push 3
push ebp
push dword [eax + 0x140]
mov ebp, dword [sym.imp.WS2_32.dll_send]
call ebp
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x464e3b
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0043fae0
add esp, 0xc
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.00464bf0
add esp, 0xc
lea eax, [esi + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x140]
call ebp
test eax, eax
jns 0x464e79
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0043fae0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x46e1e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x4f2480]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x200]
test dword [eax + 0x44], 0x800
jne 0x46e30d
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call fcn.0049f310
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x46e29a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.0042e700
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0043fae0
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0049d991
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00440ec0
add esp, 0x10
test al, al
jne 0x46e30d
push edi
call fcn.004a3c14
mov esi, dword [eax]
call fcn.004a3c14
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.0042e700
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0043fae0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0049d991
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.0049d991
add esp, 0x188
ret
Function at 0x1001e3a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
inc esi
push 2
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor edi, edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, dword [ebp + 8]
add eax, 0xfffffffd
cmp eax, 0xc
ja 0x1001f63
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.0100406c
mov esi, eax
push esi
push 0x10012fc
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
cmp esi, edi
je 0x1001f87
mov esi, 0x1006058
push esi
call fcn.01001bf7
push 0x1001298
mov dword [0x1006078], 0x1001258
mov dword [section..data], esi
call fcn.01001cc8
call fcn.01001d83
mov edi, dword [ebp + 0xc]
lea ebx, [edi + 4]
mov esi, dword [ebx]
mov ecx, 0x100128c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001eee
test dx, dx
je 0x1001eea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001eee
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001ec8
xor eax, eax
jmp 0x1001ef3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1001f02
push edi
push dword [ebp + 8]
call fcn.010040ca
jmp 0x1001f43
mov ecx, 0x1001284
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001f2f
test dx, dx
je 0x1001f2b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001f2f
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001f09
xor eax, eax
jmp 0x1001f34
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1001f48
mov eax, dword [ebp + 8]
push ebx
dec eax
push eax
call fcn.01002809
mov dword [ebp - 4], eax
jmp 0x1001f87
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001f87
test byte [eax + 0x1c], 1
je 0x1001f87
push 0x1001268
push 0xd
jmp 0x1001f7c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001f87
test byte [eax + 0x1c], 1
je 0x1001f87
push 0x1001268
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ba5
call fcn.01001d16
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10024c5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1006004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x418], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1002614
cmp eax, esi
ja 0x1002614
lea eax, [ebp - 0x20c]
push eax
push 0x10013a4
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0100242e
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x1002561
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002664
test byte [eax + 0x1c], 1
je 0x1002664
push esi
push 0x1001330
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001bcb
jmp 0x1002664
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x10025a0
mov eax, dword [section..data]
cmp eax, section..data
je 0x100259c
test byte [eax + 0x1c], 1
je 0x100259c
push 0x1001330
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ba5
push 0x7e
jmp 0x10025d6
push 0x1001394
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10025df
mov eax, dword [section..data]
cmp eax, section..data
je 0x10025d4
test byte [eax + 0x1c], 1
je 0x10025d4
push 0x1001330
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ba5
push 0x7f
call fcn.01001d5b
mov esi, eax
jmp 0x100264f
push ebx
push edi
call eax
mov esi, eax
test esi, esi
jge 0x1002610
mov eax, dword [section..data]
cmp eax, section..data
je 0x100264f
test byte [eax + 0x1c], 1
je 0x100264f
push esi
push 0x1001330
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001bcb
jmp 0x100264f
xor esi, esi
jmp 0x100264f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1002628
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002664
test byte [eax + 0x1c], 1
je 0x1002664
push esi
push 0x1001330
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001bcb
cmp dword [ebp - 0x418], 0
je 0x1002664
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002d9e
leave
ret 8
Function at 0x1002d8f
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1004cb0
call fcn.01003024
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10063f8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002ba4
cmp eax, esi
jne 0x1002b97
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002ba7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002b7e
xor esi, esi
inc esi
mov eax, dword [0x10063f4]
cmp eax, esi
jne 0x1002bba
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002bf5
mov eax, dword [0x10063f4]
test eax, eax
jne 0x1002bef
mov dword [0x10063f4], esi
push 0x100117c
push 0x1001170
call fcn.01002afb
pop ecx
pop ecx
test eax, eax
je 0x1002bf5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002cbf
mov dword [0x100609c], esi
mov eax, dword [0x10063f4]
cmp eax, esi
jne 0x1002c19
push 0x100116c
push 0x1001164
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10063f4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002c26
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10063fc], ebx
je 0x1002c47
push 0x10063fc
call fcn.01002f99
pop ecx
test eax, eax
je 0x1002c47
push ebx
push 2
push ebx
call dword [0x10063fc]
push dword [0x1006084]
push dword [0x1006088]
push dword [0x1006080]
call fcn.01001e3a
add esp, 0xc
mov dword [0x1006098], eax
cmp dword [0x100608c], ebx
jne 0x1002ca5
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100609c], ebx
jne 0x1002cb3
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1006098]
call fcn.01003069
ret
call fcn.01003171
jmp 0x1002b5c
Function at 0x10034c6
Capabilities:
Enumerate threads

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0x718], 0
je 0x10034e1
xor eax, eax
jmp 0x1003691
and dword [esi + 0x714], 0
push ebx
push edi
push dword [esi + 0x438]
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
jne 0x1003549
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1003515
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003668
test byte [eax + 0x1c], 1
je 0x1003668
push ebx
push 0x10013ec
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001bcb
jmp 0x1003668
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x10035a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100357c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100365f
test byte [eax + 0x1c], 1
je 0x100365f
push ebx
push 0x10013ec
push 0x3c
jmp 0x1003625
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x438]
jne 0x10035de
push 8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
test ecx, ecx
je 0x1003632
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [esi + 0x718]
mov dword [ecx + 4], eax
inc dword [esi + 0x714]
mov dword [esi + 0x718], ecx
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10035a5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x100365d
call edi
test eax, eax
jle 0x1003609
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100365f
test byte [eax + 0x1c], 1
je 0x100365f
push ebx
push 0x10013ec
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001bcb
jmp 0x100365f
mov ebx, 0x8007000e
mov eax, dword [section..data]
cmp eax, section..data
je 0x100365f
test byte [eax + 0x1c], 1
je 0x100365f
push 0x10013ec
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ba5
jmp 0x100365f
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jge 0x100368d
mov eax, dword [esi + 0x718]
test eax, eax
je 0x1003686
mov edi, dword [eax + 4]
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
test edi, edi
jne 0x1003676
and dword [esi + 0x718], 0
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret
Function at 0x4025c8
Capabilities:
Encode data using xor

Disassembly:
push 0x4069bc
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add ah, dh
sbb al, 0
dec byte [edi*4 + 0x1cbf4331]
dec esi
mov esp, 0x1d08625
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
jo 0x402673
inc ecx
jno 0x402672
inc esi
jne 0x40267a
arpl word [ecx + ebp*2 + 0x6f], si
outsb dx, byte [esi]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add bh, bh
int3
inc edx
add byte [eax], al
mov dh, 0x40
add byte [eax], al
add byte [eax], cl
add byte [eax + 0x6d], dh
or byte [eax], al
jo 0x4026eb
inc ecx
jno 0x4026ea
push edi
outsb dx, byte [esi]
add byte fs:[0xf1c7aa03], cl
add byte [eax + eax*8], al
rol al, 0
sbb dword [ebx], eax
add byte [ebx], ah
and al, byte [eax]
and ebp, dword [esi + 0x40]
add byte [eax], al
insb byte es:[edi], dx
je 0x40269f
add byte [esi + 0x40], ah
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add al, 0
adc byte [eax], dl
add byte [eax], al
add dword [eax], eax
or byte [eax], al
push 0x46000005
add byte [eax], al
add byte [eax], dh
xor byte [eax], al
add byte [ecx], al
add byte [eax], ah
add byte [eax - 0x51ffffdb], ch
add eax, 0x20200000
add byte [eax], al
add dword [eax], eax
and byte [eax], al
test al, 0x10
add byte [eax], al
push esi
sub eax, dword [eax]
add byte [eax], dl
adc byte [eax], al
add byte [ecx], al
add byte [eax], ah
add byte [eax + 4], ch
add byte [eax], al
invalid
sub byte [eax], al
add byte [eax], al
adc byte [eax], al
add byte [eax], al
and byte [eax], al
add byte [eax], al
add dword [eax], eax
or byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], dl
add byte [eax], al
add byte [eax], ah
add byte [eax], al
add byte [ecx], al
add byte [eax], cl
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [ebx + 0x2f00787f], cl
mov edi, dword [edi + 0x78]
add byte [edi], ch
insb byte es:[edi], dx
fild word [eax]
xor ch, byte [ebp + ebx*8]
xor dword [ebx], esi
cmp eax, 0x3200e27f
jle 0x402716
add byte [0x3500ed86], dh
invalid
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401750
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x210
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
push edi
mov edi, ecx
xor ebp, ebp
cmp dword [edi + 0x468], ebp
mov eax, str.QQMusicLaunch.prf
jne 0x4017a1
mov eax, dword [edi + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x480]
pop edi
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00403c5c
add esp, 0x210
ret
cmp dword [edi + 4], ebp
je 0x4017bd
push str.QQMusicLaunch.prf
lea ecx, [edi + 0x152]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x4017ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401870
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401806
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40186f
push 0
push ebx
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x401824
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40186f
push ebx
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
lea edx, [ebx - 4]
mov dword [edi + 0x470], esi
call fcn.004014b0
cmp eax, dword [esi + ebx - 4]
je 0x401852
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40186b
push edi
call fcn.00401f00
test eax, eax
je 0x401865
call fcn.004018c0
test eax, eax
jne 0x40186b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x10]
pop ebx
mov eax, dword [edi + 0x470]
test eax, eax
je 0x40188b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 0x470], 0
test ebp, ebp
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401898
push ebp
call edi
cmp esi, 0xffffffff
je 0x4018a0
push esi
call edi
mov ecx, dword [esp + 0x218]
pop esi
pop edi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00403c5c
add esp, 0x210
ret
Function at 0x401920
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push 0
push 0x50000080
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x401a38
mov edx, dword [esi + 0x464]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x290]
push edx
mov dword [esi + 0x460], ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFileEx]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0xc], 0
add edi, 0x29c
mov eax, dword [esi + 0x468]
push 0x14
push 9
push eax
call ebp
mov ecx, dword [edi - 4]
mov dword [eax + 8], ecx
add dword [esi], 1
mov ecx, dword [esp + 0x10]
push 0x402080
push eax
mov dword [eax + 0x10], esi
mov edx, dword [edi]
mov eax, dword [esi + 0x47c]
push edx
push eax
push ecx
call ebx
test eax, eax
jne 0x4019d3
add dword [esi], 0xffffffff
jne 0x4019cc
mov eax, esi
call fcn.00401680
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
add dword [esi + 0x460], 0xffffffff
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
add eax, 1
add edi, 0xc
cmp eax, dword [edx + 0x290]
mov dword [esp + 0xc], eax
jbe 0x401983
cmp dword [esi + 0x460], 0
jle 0x401a24
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea esp, [esp]
mov eax, dword [esi + 0x464]
push 1
push 0x1388
push eax
call edi
test eax, eax
je 0x401a24
cmp eax, 0x102
je 0x401a24
cmp dword [esi + 0x460], 0
jg 0x401a00
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
add esp, 8
mov dword [esp + 4], ecx
jmp dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
ret 4

Function at 0x401a90
Capabilities:
Set current directory

Disassembly:
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov edi, eax
je 0x401aaf
lea eax, [esi + 0x35a]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 0x478]
mov ecx, eax
imul ecx, ecx, 0x64
push ecx
lea edx, [eax + eax]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
test eax, eax
jne 0x401ad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
ret 4
mov eax, dword [esp + 0xc]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x401b15
xor esi, esi
cmp dword [ebx + 0x10c], esi
jbe 0x401b0e
lea edi, [ebx + 0x110]
push edi
push ebp
mov ecx, ebx
call fcn.00401a40
add esi, 1
add edi, 0x18
cmp esi, dword [ebx + 0x10c]
jb 0x401af7
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop edi
pop esi
ret 4
Function at 0x4020d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4046d6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov eax, dword [0x40701c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
push 0x206
lea eax, [esp + 0x16]
push 0
mov dword [esp + 0x10], 0
push eax
mov word [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x402150
push esi
mov ecx, 0x405374
call fcn.00402c20
jmp 0x4021e3
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x14]
call fcn.00402c20
push eax
lea eax, [esp + 0x10]
push eax
mov ebx, str.TencentQQMusic_
mov dword [esp + 0x22c], 0
call fcn.00402dc0
push eax
push esi
mov ebx, str.QMQBIE_
mov byte [esp + 0x234], 1
call fcn.00402dc0
mov byte [esp + 0x234], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00403c5c
add esp, 0x220
ret