joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017e2c
Capabilities:
Get hostname

Disassembly:
push 0x16c
mov eax, 0x1004727f
call fcn.10021762
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x170], eax
call fcn.10003546
push eax
lea ecx, [ebp - 0x16c]
call fcn.10002d0d
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.10003546
push eax
lea ecx, [ebp - 0x168]
call fcn.10002d0d
mov byte [ebp - 4], 1
call fcn.10003546
push eax
lea ecx, [ebp - 0x164]
call fcn.10002d0d
mov byte [ebp - 4], 2
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 0x1000
stosd dword es:[edi], eax
mov dword [ebp - 0x174], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x174]
push eax
push ecx
lea ecx, [ebp - 0x168]
call fcn.100030eb
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x168]
call fcn.10004aa1
push esi
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.10004861
add esp, 0xc
push eax
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 3
call fcn.10004a2d
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x170]
lea ecx, [ecx - 0x10]
call fcn.100035f1
push 3
push dword [ebp - 0x164]
lea eax, [ebp - 0xdc]
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe0], eax
call fcn.100027db
mov byte [ebp - 4], 4
push dword [ebp - 0xe0]
call fcn.100028d9
pop ecx
push eax
push dword [ebp - 0xe0]
lea ecx, [ebp - 0x16c]
call fcn.10002c93
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xe0], eax
je 0x10017f64
push dword [ebp - 0xe0]
call fcn.1002686a
pop ecx
lea eax, [ebp - 0xb8]
push eax
call fcn.10004acd
mov eax, dword [ebp - 0x16c]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.10005393
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.10005439
mov esi, str.0123456789ABCDEF
lea edi, [ebp - 0x34]
add esp, 0x18
mov edx, ebx
xor eax, eax
movsd dword es:[edi], dword [esi]
push 8
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
cmp edx, 0x21
jae 0x10017fde
movzx ecx, byte [ebp + ebx - 0x20]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc ebx
mov al, byte [ebp + eax - 0x34]
mov byte [ebp + edx - 0x58], al
mov al, byte [ebp + ecx - 0x34]
mov byte [ebp + edx - 0x57], al
add edx, 2
cmp ebx, 0x10
jb 0x10017fb3
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 0x160]
push 3
lea eax, [ebp - 0x58]
push eax
call fcn.100029a2
mov byte [ebp - 4], 5
push dword [ebp - 0x160]
call fcn.10002e3a
pop ecx
push eax
push dword [ebp - 0x160]
lea ecx, [ebp - 0x164]
call fcn.10003251
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x160], eax
je 0x1001803b
push dword [ebp - 0x160]
call fcn.1002686a
pop ecx
mov esi, dword [ebp - 0x178]
lea ecx, [ebp - 0x164]
push 0x10
push 0xa
push esi
call fcn.100049a5
mov ecx, dword [ebp - 0x164]
lea ecx, [ecx - 0x10]
call fcn.100035f1
mov ecx, dword [ebp - 0x168]
add ecx, 0xfffffff0
call fcn.100035f1
mov ecx, dword [ebp - 0x16c]
add ecx, 0xfffffff0
call fcn.100035f1
mov eax, esi
call fcn.1002170c
ret
Function at 0x100181ba
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x3b8], eax
test eax, eax
jne 0x100181db
xor eax, eax
jmp 0x100181f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100181f1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x100181d7
xor eax, eax
inc eax
pop esi
pop ebp
ret 4

Function at 0x100185b7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1005c030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100185fe
cmp dword [ebp - 0x108], 2
jne 0x100185fe
xor eax, eax
inc eax
cmp dword [ebp - 0x114], 6
cmovae esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100206ba
leave
ret

Function at 0x10018797
Capabilities:
Check mutex on windows

Disassembly:
push 0xc
mov eax, 0x10046825
call fcn.1002172e
push str.VZip
lea ecx, [ebp - 0x10]
call fcn.10002f71
push str.VZipMiniNews
lea eax, [ebp - 0x10]
xor edi, edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
call fcn.10004861
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
mov edx, dword [eax]
call fcn.10017e2c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.100035f1
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.100035f1
mov esi, dword [ebp - 0x18]
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x10018816
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10018816
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10018819
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.100035f1
mov eax, edi
call fcn.100216f7
ret
Function at 0x1001ade0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x1005daa8], 0
push esi
mov esi, dword [ebp + 8]
jne 0x1001aeeb
push 0x1005daac
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x1001aed9
test esi, esi
jne 0x1001aece
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x1001aeae
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x1001aeae
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1001aeae
push str.CryptReleaseContext
push esi
call edi
mov edi, eax
test edi, edi
je 0x1001aeae
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x1001aeae
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x1001aeae
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x1001aec2
push 0
call fcn.1002b50d
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x1005daa8], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
nop
call esi
cmp dword [0x1005daa8], 0
je 0x1001aee0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001af00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x1001b00c
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x1001af40
cmp edx, 0xc
ja 0x1001b078
jmp dword [edx*4 + 0x1001b0c8]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001ba89
Capabilities:
Check if file exists

Disassembly:
push 0x218
mov eax, 0x100473c2
call fcn.10021762
mov ebx, ecx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x224], ebx
call fcn.1001e6d5
and dword [ebp - 4], 0
mov dword [ebx], vtable.CServerConnect.0
call fcn.10003546
push eax
lea ecx, [ebx + 0x10]
call fcn.10002d0d
mov byte [ebp - 4], 1
call fcn.10003546
push eax
lea ecx, [ebx + 0x14]
call fcn.10002d0d
mov byte [ebp - 4], 2
call fcn.10003546
push eax
lea ecx, [ebx + 0x18]
call fcn.10002d0d
mov byte [ebp - 4], 3
call fcn.10003546
push eax
lea ecx, [ebx + 0x1c]
call fcn.10002d0d
push 0
mov byte [ebp - 4], 4
call fcn.1002b50d
push eax
call fcn.1002b59a
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.10022d40
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.1001fb99
add esp, 0x1c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x214]
lea eax, [ebp - 0x110]
push 3
push eax
call fcn.100029a2
push dword [ebp - 0x214]
mov byte [ebp - 4], 5
call fcn.10002e3a
pop ecx
push eax
push dword [ebp - 0x214]
lea ecx, [ebx + 0x10]
call fcn.10003251
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x214], eax
je 0x1001bb8b
push dword [ebp - 0x214]
call fcn.1002686a
pop ecx
xor eax, eax
xor esi, esi
inc eax
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x40], esi
call fcn.10003546
push eax
lea ecx, [ebp - 0x218]
call fcn.10002d0d
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 6
push esi
push eax
call fcn.1001c942
push str.AppTest.txt
push eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 7
push eax
call fcn.10004861
mov ecx, dword [ebp - 0x220]
add esp, 0x14
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.100035f1
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x21c]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.100035f1
lea ecx, [ebp - 0x218]
test esi, esi
je 0x1001bc18
push 7
push str.http:__
jmp 0x1001bc1f
push 8
push str.https:__
call fcn.10003251
mov esi, dword [ebp - 0x218]
lea eax, [ebx + 0x14]
push 0x10048a90
push str.zhanfukeji
push 0x10048a98
push esi
mov edi, str._s_s._s._s_
push edi
push eax
call fcn.1000a90b
push 0x10048a90
push str.zhanfukeji
push 0x10048a98
push esi
lea eax, [ebx + 0x18]
push edi
push eax
call fcn.1000a90b
xor eax, eax
lea edi, [ebx + 0x20]
push eax
push eax
push eax
push edi
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
call fcn.10004224
add esp, 0x40
test eax, eax
jne 0x1001bc80
and dword [edi], eax
and dword [ebx + 0x48], 0
lea ecx, [esi - 0x10]
and dword [ebx + 0x4c], 0
call fcn.100035f1
mov eax, ebx
call fcn.1002170c
ret
Function at 0x1001c7bc
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x100475ac
call fcn.1002172e
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.10002f71
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001c852
push eax
jmp 0x1001c841
call fcn.10003546
push eax
lea ecx, [ebp - 0x14]
call fcn.10002d0d
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.100048b9
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10004a2d
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.100035f1
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001c834
push esi
call fcn.1002b54f
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.100035f1
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.1000a2bb
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001c7e7
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.100035f1
call fcn.100216f7
ret

Function at 0x1001d238
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x10047835
call fcn.1002172e
call fcn.10003546
push eax
lea ecx, [ebp - 0x10]
call fcn.10002d0d
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.100030eb
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10004aa1
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x1001d29d
mov ecx, dword [ebp + 8]
push 0x1004fe94
call fcn.10002f71
lea ecx, [esi - 0x10]
call fcn.100035f1
mov eax, dword [ebp + 8]
jmp 0x1001d2f6
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.10004a7d
cmp ax, 0x5c
je 0x1001d2bc
push 1
push 0x100501fc
lea ecx, [ebp - 0x10]
call fcn.10002a6a
push 5
push str.VZip_
lea ecx, [ebp - 0x10]
call fcn.10002a6a
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x10]
je 0x1001d2db
push esi
call fcn.1001c7bc
pop ecx
lea edi, [esi - 0x10]
push edi
call fcn.10002710
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, edi
mov dword [esi], eax
call fcn.100035f1
mov eax, esi
call fcn.100216f7
ret
Function at 0x1001eb05
Capabilities:
Check if file exists
Delete file

Disassembly:
push 8
mov eax, 0x10047b1b
call fcn.1002172e
mov edi, ecx
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 8]
call dword [eax + 8]
test eax, eax
je 0x1001ec09
call fcn.10003546
push eax
lea ecx, [ebp + 0x10]
call fcn.10002d0d
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebp - 4], 1
call fcn.10002e3a
pop ecx
push eax
push ebx
lea ecx, [ebp + 0x10]
call fcn.10003251
push 0x5c
push dword [ebp + 0x10]
call fcn.1002246a
pop ecx
pop ecx
test eax, eax
jne 0x1001eb6c
or eax, 0xffffffff
jmp 0x1001eb71
sub eax, dword [ebp + 0x10]
sar eax, 1
inc eax
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.100048b9
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.10004a2d
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.100035f1
mov esi, dword [ebp + 0x10]
push esi
call fcn.1001c7bc
pop ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001ebb7
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x14]
push eax
push eax
push 0x80
push 2
push eax
push 0xc0000000
push ebx
call fcn.1001e71c
test eax, eax
js 0x1001ebee
push 0
push dword [edi + 8]
lea ecx, [ebp - 0x14]
push dword [edi + 4]
call fcn.1001f4f4
test eax, eax
js 0x1001ebee
xor ebx, ebx
inc ebx
jmp 0x1001ebf0
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x1001ebff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.100035f1
mov eax, ebx
call fcn.100216f7
ret 0xc

Function at 0x1001ec47
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x10047b3e
call fcn.1002172e
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1001c942
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10004861
mov ecx, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.100035f1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.100035f1
mov eax, esi
call fcn.100216f7
ret
Function at 0x1001f891
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.100218d0
mov eax, dword [0x1005c030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.10022d40
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10022d40
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.1001fbf6
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001f920
mov al, 1
jmp 0x1001fa29
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.10022d40
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.10022d40
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.10022d40
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1001f9a2
mov bl, 2
jmp 0x1001fa20
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1001fa38
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.1001fa38
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f9e3
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.10005393
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001fa06
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.10005393
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100206ba
leave
ret
Function at 0x1001fc2c
Capabilities:
Create raw socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1005c030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
xor edi, edi
push 0x101
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push edi
xor ebx, ebx
mov word [esi + 8], ax
inc ebx
push ebx
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1001fca9
push ebx
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], ebx
call fcn.1002685f
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x1001fca9
mov dword [esi + 0x10], edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100206ba
leave
ret

Function at 0x1001fdaa
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1005c030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x64
mov dword [ebp - 0x7c], eax
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.10022d40
add esp, 0xc
test esi, esi
je 0x1001fe43
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x1001fe43
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
jmp 0x1001fe25
movsx eax, word [esi + 0xa]
push eax
push ecx
lea eax, [ebp - 0x74]
push eax
call fcn.10022ea0
add esp, 0xc
push dword [ebp - 0x74]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x68]
push 0x10049034
push eax
call fcn.1001fc11
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
jne 0x1001fdf1
push dword [ebp + 0x10]
lea eax, [ebp - 0x68]
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov ecx, ebx
call fcn.1001fe56
jmp 0x1001fe45
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100206ba
leave
ret 0xc
Function at 0x1001fe56
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x1005c030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x1002000d
push 2
pop eax
mov word [ebp - 0x114], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x144], 0x10
call fcn.1001fd26
mov cx, word [0x1005e430]
inc cx
mov dword [ebp - 0x14c], eax
push 0x2c
mov word [0x1005e430], cx
push 0
push dword [edi + 0xc]
movzx eax, cx
mov dword [ebp - 0x148], eax
call fcn.10022d40
mov esi, dword [edi + 0xc]
add esp, 0xc
mov ecx, edi
mov word [esi], 8
mov ax, word [edi + 8]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x148]
mov word [esi + 6], ax
mov eax, dword [ebp - 0x14c]
push 0x2c
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.1001fcd8
mov word [esi + 2], ax
lea eax, [ebp - 0x114]
push dword [ebp - 0x144]
push eax
push 0
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1002000d
test ebx, ebx
jne 0x1001ff2f
xor eax, eax
inc eax
jmp 0x1002000f
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10022d40
add esp, 0xc
lea esi, [edi + 4]
push 0
push 0x64
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x1001fff7
lea eax, [ebp - 0x140]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x140], 1
je 0x1001fff7
mov ecx, edi
call fcn.1001fd26
mov esi, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edx, eax
cmp edx, 0xffffffff
je 0x1001fff4
mov cl, byte [ebp - 0x104]
and cl, 0xf
movzx ecx, cl
shl cx, 2
movzx eax, cx
movzx ecx, ax
mov dword [ebp - 0x150], eax
mov ax, word [ebp + ecx - 0x100]
cmp ax, word [edi + 8]
jne 0x1001fff4
cmp byte [ebp + ecx - 0x104], 0
jne 0x1001fff4
mov eax, dword [ebp - 0x148]
cmp word [ebp + ecx - 0xfe], ax
je 0x10020020
lea esi, [edi + 4]
mov ecx, edi
call fcn.1001fd26
sub eax, dword [ebp - 0x14c]
cmp eax, dword [ebp + 0x10]
jb 0x1001ff48
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100206ba
leave
ret 0xc
sub esi, dword [ebp + ecx - 0xfc]
mov ecx, dword [ebp - 0x150]
movzx ecx, cx
sub edx, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0xfc]
sub edx, 0xc
mov dword [ebx + 4], esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
jmp 0x1001ff27

Function at 0x10039469
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100392e8

Function at 0x1003b942
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003b602