joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46abc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x258
mov dword [ebp + 0x74], ecx
mov dword [ebp - 0x1e0], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp + 0x70], eax
cmp dword [ebp + 0x70], 0xffffffff
jne 0x46abf0
jmp 0x46adb9
lea eax, [ebp - 0x1e0]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x46ac14
mov edx, dword [ebp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46adb9
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x68], eax
mov ecx, dword [ebp + 0x68]
call fcn.00408210
mov cl, byte [ebp + 0x6f]
mov byte [ebp + 0x6e], cl
mov edx, dword [ebp + 0x68]
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
mov dword [edx + 4], ecx
push str.360se.exe
lea edx, [ebp - 0x1bc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x46ac5f
push str.360tray.exe
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46ac77
mov dword [ebp + 0x5c], 0
lea ecx, [ebp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x74]
call fcn.0046adc0
jmp 0x46ad96
push str.HipsTray.exe
lea edx, [ebp - 0x1bc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46aca5
mov dword [ebp + 0x64], 3
lea eax, [ebp + 0x64]
push eax
mov ecx, dword [ebp + 0x74]
call fcn.0046adc0
jmp 0x46ad96
push str.avp.exe
lea ecx, [ebp - 0x1bc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46acd3
mov dword [ebp + 0x4c], 5
lea edx, [ebp + 0x4c]
push edx
mov ecx, dword [ebp + 0x74]
call fcn.0046adc0
jmp 0x46ad96
push str.mfemms.exe
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46ad01
mov dword [ebp + 0x54], 6
lea ecx, [ebp + 0x54]
push ecx
mov ecx, dword [ebp + 0x74]
call fcn.0046adc0
jmp 0x46ad96
push str.QQPCTray.exe
lea edx, [ebp - 0x1bc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46ad2c
mov dword [ebp + 0x60], 1
lea eax, [ebp + 0x60]
push eax
mov ecx, dword [ebp + 0x74]
call fcn.0046adc0
jmp 0x46ad96
push str.ksafe.exe
lea ecx, [ebp - 0x1bc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x46ad58
push str.kxetray.exe
lea edx, [ebp - 0x1bc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46ad6d
mov dword [ebp + 0x58], 2
lea eax, [ebp + 0x58]
push eax
mov ecx, dword [ebp + 0x74]
call fcn.0046adc0
jmp 0x46ad96
push str.2345SafeTray.exe
lea ecx, [ebp - 0x1bc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46ad96
mov dword [ebp + 0x50], 4
lea edx, [ebp + 0x50]
push edx
mov ecx, dword [ebp + 0x74]
call fcn.0046adc0
lea eax, [ebp - 0x1e0]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46ac33
mov edx, dword [ebp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebp, 0x78
mov esp, ebp
pop ebp
ret
Function at 0x46be14
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor bl, bl
mov byte [ebp - 4], bl
mov esi, dword [edi + 8]
test esi, esi
je 0x46be3e
push dword [esi]
call fcn.0046c100
mov esi, dword [esi + 4]
xor bl, al
pop ecx
test esi, esi
jne 0x46be2a
mov byte [ebp - 4], bl
push dword [ebp - 4]
push edi
call fcn.0046beec
pop ecx
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46c100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor dl, dl
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x46c12c
push esi
cmp dword [ecx], 4
je 0x46c124
mov eax, dword [ecx + 4]
dec eax
js 0x46c124
mov esi, dword [ecx + 8]
xor dl, byte [esi + eax]
dec eax
jns 0x46c11e
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x46c110
pop esi
mov al, dl
pop ebp
ret

Function at 0x46d7de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x5b6f80], 0
jne 0x46d7f2
call fcn.0046d8ee
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 0x1e
jbe 0x46d803
or eax, 0xffffffff
jmp 0x46d8e9
push ebx
push edi
mov edi, dword [ebp + 0x14]
push esi
push 0
push edi
call fcn.00511290
add esp, 0xc
cmp byte [esi + 0x5b750a], 0
jne 0x46d824
push esi
call fcn.0046d947
pop ecx
lea eax, [esi - 2]
xor ebx, ebx
imul edx, eax, 0x1f
mov dword [ebp - 4], ebx
add edx, 0x5b7188
mov dword [ebp - 8], edx
cmp dword [ebp + 8], ebx
jbe 0x46d8e5
mov dword [ebp - 0x10], 0xff
mov eax, dword [ebp + 0x10]
movzx ecx, byte [ebx + eax]
movzx eax, byte [edi]
xor ecx, eax
mov al, byte [ecx + 0x5b7088]
mov ecx, 0xff
mov byte [ebp + 0xf], al
cmp al, cl
je 0x46d894
xor ecx, ecx
inc ecx
cmp esi, ecx
jbe 0x46d894
movzx eax, al
lea ebx, [esi - 1]
mov dword [ebp - 0xc], eax
add ebx, edx
movzx eax, byte [ebx]
add eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x10]
mov al, byte [edx + 0x5b6f88]
xor byte [ecx + edi], al
inc ecx
dec ebx
cmp ecx, esi
jb 0x46d878
mov ebx, dword [ebp - 4]
lea eax, [esi - 1]
push eax
lea eax, [edi + 1]
push eax
push edi
call fcn.00510bf0
mov cl, byte [ebp + 0xf]
mov eax, 0xff
add esp, 0xc
cmp cl, al
je 0x46d8d0
mov eax, dword [ebp - 8]
movzx ecx, cl
movzx eax, byte [eax]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov al, byte [edx + 0x5b6f88]
mov byte [esi + edi - 1], al
jmp 0x46d8d5
mov byte [esi + edi - 1], 0
mov edx, dword [ebp - 8]
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, dword [ebp + 8]
jb 0x46d848
pop edi
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46d947
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x5ae774]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x80], 1
mov esi, ecx
test edi, edi
je 0x46d9ca
mov ecx, 0xff
push ebx
mov dword [ebp + esi*4 - 0x7c], 1
mov ebx, esi
test esi, esi
je 0x46d9a8
mov eax, dword [ebp + ebx*4 - 0x80]
xor edx, edx
movzx eax, byte [eax + 0x5b7088]
add eax, esi
div ecx
movzx eax, byte [edx + 0x5b6f88]
xor eax, dword [ebp + ebx*4 - 0x84]
mov dword [ebp + ebx*4 - 0x80], eax
dec ebx
jne 0x46d982
mov eax, dword [ebp - 0x80]
xor edx, edx
movzx eax, byte [eax + 0x5b7088]
add eax, esi
div ecx
inc esi
movzx eax, byte [edx + 0x5b6f88]
mov dword [ebp - 0x80], eax
cmp esi, edi
jb 0x46d974
xor ecx, ecx
pop ebx
lea eax, [edi - 2]
imul edx, eax, 0x1f
mov eax, dword [ebp + ecx*4 - 0x80]
mov al, byte [eax + 0x5b7088]
mov byte [edx + ecx + 0x5b7188], al
inc ecx
cmp ecx, edi
jbe 0x46d9d0
mov ecx, dword [ebp - 4]
mov byte [edi + 0x5b750a], 1
xor ecx, ebp
pop edi
pop esi
call fcn.005101e9
mov esp, ebp
pop ebp
ret
Function at 0x48dd90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x48ddd9
mov al, byte [esi]
push eax
call fcn.0048c4b0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x48ddb7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x499ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f1], 0
je 0x499b63
cmp dword [edi + 0x1c0], 0
je 0x499b2d
push esi
push 1
push edi
call fcn.004948f0
push dword [edi + 0x154]
mov eax, dword [edi + 0x1c0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004948f0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x499b63
push dword [edi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x5619c0
push 2
push eax
call fcn.005119bf
push dword [edi + 0x150]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005119bf
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x499b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5ae774]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f1], 0
jne 0x499b9d
cmp dword [edi + 0x158], 0
je 0x499c7c
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x100
push eax
call sym.XFPDFEditor.exe_curl_mvsnprintf
lea esi, [ebp - 0x108]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x499bc2
sub esi, ecx
mov ecx, dword [edi + 0x158]
test ecx, ecx
je 0x499bf8
cmp byte [edi + 0xcb7], al
jne 0x499bf8
lea edx, [ebp - 0x108]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x499be3
mov byte [edi + 0xcb7], 1
mov byte [ebp + esi - 0x108], 0xa
inc esi
cmp byte [edi + 0x6f1], 0
je 0x499c7b
cmp dword [edi + 0x1c0], 0
je 0x499c4f
push 1
push edi
call fcn.004948f0
push dword [edi + 0x154]
lea eax, [ebp - 0x108]
push esi
push eax
mov eax, dword [edi + 0x1c0]
push 0
push edi
call eax
push 0
push edi
call fcn.004948f0
add esp, 0x24
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005101e9
mov esp, ebp
pop ebp
ret
push dword [edi + 0x150]
push 1
push 2
push 0x5619c0
call fcn.005119bf
push dword [edi + 0x150]
lea eax, [ebp - 0x108]
push 1
push esi
push eax
call fcn.005119bf
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005101e9
mov esp, ebp
pop ebp
ret
Function at 0x499f40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5ae774]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [edx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4 + 0x158]
push ecx
push eax
push edx
mov dword [ebp - 0x108], edx
call fcn.0049a3b0
add esp, 0xc
test eax, eax
je 0x499f9b
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005101e9
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x49a018
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x499fe0
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005101e9
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.004b1ee0
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.00499b70
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x948], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005101e9
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [edx + 0x18]
mov eax, dword [ecx + 0x298]
mov ebx, dword [ecx + edx*4 + 0x158]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x49a466
cmp dword [ecx + edx*4 + 0x170], 0x499e40
jne 0x49a466
cmp dword [esi], 0
je 0x49a3f7
test edi, edi
je 0x49a466
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004abca0
add esp, 0x14
cmp eax, 0xffffffff
je 0x49a466
test al, 1
je 0x49a466
cmp dword [esi], 0
jne 0x49a44f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4d8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5ae090]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x49a43e
pop edi
pop esi
mov eax, 0x1b
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x49a466
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x49a890
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x5ae774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.00511290
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x49a90d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.004b1ee0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x49a951
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.0049a470
add esp, 0x10
test al, al
jne 0x49a95a
call fcn.00515959
mov esi, eax
call fcn.00515959
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push dword [esi]
call fcn.004b1ee0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00499b70
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005101e9
mov esp, ebp
pop ebp
ret

Function at 0x49b1b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5b7820]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x49b201
push 3
push 2
push eax
push 6
call fcn.004b2d40
add esp, 0x10
test al, al
je 0x49b1f5
mov dword [0x5b7820], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5b7820], 1
jmp 0x49b206
cmp eax, 2
je 0x49b246
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x49b22d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x49b246
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x49bfc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5ae774]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x6ff], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x49c01d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00499c90
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005101e9
mov esp, ebp
pop ebp
ret
push dword [esi + 0x69c]
mov dword [ebp - 0x10], 1
call fcn.004934f0
push dword [esi + 0x6a0]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004934f0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x49c08d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00499c90
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005101e9
mov esp, ebp
pop ebp
ret

Function at 0x49c0a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5ae774]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x49c102
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b1ee0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00499c90
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005101e9
mov esp, ebp
pop ebp
ret
Function at 0x49c440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x561e14
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x49c460
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x561e30
push esi
mov dword [ebp - 8], ebx
call fcn.0051f1e7
add esp, 8
test eax, eax
je 0x49c4ac
test ebx, ebx
je 0x49c49c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x49c4d5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49c4d5
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x49c580
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49c4f1
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x5ae090]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x49c576
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x49c576
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49c522
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49c540
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x49c550
mov eax, dword [ebp - 8]
test eax, eax
je 0x49c56d
push 8
push 0
push ebx
call eax
jmp 0x49c574
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x5ae094]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x49c5d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5ae774]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x49c629
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49c616
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x49c610
shr eax, 8
cmp al, 2
je 0x49c629
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005101e9
mov esp, ebp
pop ebp
ret
call fcn.004b3af0
test eax, eax
jne 0x49c68b
push str.iphlpapi.dll
call fcn.0049c440
add esp, 4
mov dword [0x5b7824], eax
test eax, eax
je 0x49c665
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x5b7828]
test eax, eax
cmovne ecx, eax
mov dword [0x5b7828], ecx
push 3
push 2
push 0
push 6
call fcn.004b2d40
add esp, 0x10
test al, al
setne byte [0x5bd394]
push 0x5bd398
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005101e9
mov esp, ebp
pop ebp
ret

Function at 0x49f510
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push esi
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp + 0x14], esi
call fcn.00511290
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push dword [ebp + 0x18]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x49f5de
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x49f5c0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x49f5c0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x49f5c0
cmp esi, dword [ebp - 0xc]
jb 0x49f5c0
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x49f5ce
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x49f5de
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a1970
Capabilities:
Query environment variable

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

Function at 0x4a3bb0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004a9e80
mov esi, dword [ebp + 0xc]
add esp, 4
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
movdqu xmm0, xmmword [eax]
push 1
push esi
push edi
movdqu xmmword [ebp - 0x10], xmm0
call ebx
test eax, eax
jne 0x4a3c2f
lea eax, [ebp - 0x20]
push eax
call fcn.004a9e80
movdqu xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movdqu xmmword [ecx], xmm0
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
call fcn.004a9f20
add esp, 0x20
test edx, edx
ja 0x4a3c38
jb 0x4a3c1d
cmp eax, 0x3e8
ja 0x4a3c38
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x4a3be4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret