joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ac6ef
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3d5f
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x228]
call fcn.100107ef
and dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.10004a7c
and word [ebp - 0x224], 0
push 0x20a
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.10071bb0
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
call fcn.10003e87
lea ecx, [ebp - 0x228]
call fcn.100108e9
test eax, eax
jle 0x100ac7d6
lea eax, [ebp - 0x228]
push eax
call fcn.100ac6b7
pop ecx
push str.TencentQMDownload_
lea ecx, [ebp - 0x228]
call fcn.1000a113
lea ecx, [ebp - 0x228]
call fcn.10010f80
push eax
call fcn.1000a0e9
pop ecx
test eax, eax
jne 0x100ac7d6
push 0
lea ecx, [ebp - 0x228]
call fcn.10010f80
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
call fcn.10003dd9
mov eax, dword [ebp - 0x22c]
or eax, 1
mov dword [ebp - 0x22c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.10003e5d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006ef11
leave
ret

Function at 0x100ac81d
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
mov eax, dword [0x100fd96c]
and eax, 1
jne 0x100ac863
mov eax, dword [0x100fd96c]
or eax, 1
mov dword [0x100fd96c], eax
mov ecx, 0x100fd968
call fcn.100107ef
push 0x100ba7ee
call fcn.1006f47b
pop ecx
mov ecx, 0x100fd968
call fcn.1002fe4d
movzx eax, al
test eax, eax
je 0x100ac8ed
and word [ebp - 0x218], 0
push 0x20a
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10071bb0
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0x100c9e40
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x100fd968
call fcn.10003e87
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100ac8ed
push 0
mov ecx, 0x100fd968
call fcn.10010f80
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x100fd968
mov ecx, dword [ebp + 8]
call fcn.10003dd9
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006ef11
leave
ret
Function at 0x100ac9a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 3
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x18], 1
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x100ca160
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100aca06
jmp 0x100acb59
push dword [ebp + 8]
push 0x100ca1b0
push 0x103
lea eax, [ebp - 0x128]
push eax
call fcn.10008073
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100aca4b
jmp 0x100acb50
mov dword [ebp - 0x18], 4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x100ca1c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100aca83
jmp 0x100acb47
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 0x103
push 0x104
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.10071bb0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x100ca1d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100acace
jmp 0x100acb47
cmp dword [ebp - 0x10], 1
jne 0x100acafe
push 0x100ca15c
call fcn.1006ee70
pop ecx
push eax
push 0x100ca1e0
lea eax, [ebp - 0x128]
push eax
call fcn.10070dae
add esp, 0xc
test eax, eax
jne 0x100acafe
and dword [ebp - 8], 0
jmp 0x100acb47
cmp dword [ebp - 0x10], 1
jne 0x100acb31
push 0x100ca1e4
call fcn.1006ee70
pop ecx
push eax
push 0x100ca1e8
lea eax, [ebp - 0x128]
push eax
call fcn.10070dae
add esp, 0xc
test eax, eax
je 0x100acb31
mov dword [ebp - 8], 2
jmp 0x100acb47
cmp dword [ebp - 0x10], 2
jne 0x100acb40
mov dword [ebp - 8], 1
jmp 0x100acb47
mov dword [ebp - 8], 3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1006ef11
leave
ret
Function at 0x100acf27
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x20], eax
and dword [ebp - 8], 0
jmp 0x100acf57
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x100acf75
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push dword [ecx + eax*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x18], eax
jmp 0x100acf50
mov dword [ebp - 0x1c], 0xe3779b90
and dword [ebp - 8], 0
jmp 0x100acf89
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x100acfe4
mov eax, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x1c]
xor eax, ecx
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0xc]
xor eax, ecx
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
xor eax, ecx
mov ecx, dword [ebp - 0x20]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor eax, ecx
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x1c]
add eax, 0x61c88647
mov dword [ebp - 0x1c], eax
jmp 0x100acf82
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
leave
ret
Function at 0x100ad003
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x20], eax
and dword [ebp - 8], 0
jmp 0x100ad033
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x100ad051
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push dword [ecx + eax*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x18], eax
jmp 0x100ad02c
and dword [ebp - 0x1c], 0
and dword [ebp - 8], 0
jmp 0x100ad062
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x100ad0b9
mov eax, dword [ebp - 0x1c]
sub eax, 0x61c88647
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
xor eax, ecx
mov ecx, dword [ebp - 0x20]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor eax, ecx
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x1c]
xor eax, ecx
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0xc]
xor eax, ecx
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
jmp 0x100ad05b
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
leave
ret

Function at 0x100adf6f
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0x5c
push 0
push dword [ebp + 8]
call fcn.10071bb0
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov eax, dword [ebp + 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x58], 0
pop ebp
ret
Function at 0x100b06dd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4a73
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x2c]
call fcn.100016f2
and dword [ebp - 4], 0
mov byte [ebp - 0x2d], 0
push 0x208
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.10071bb0
add esp, 0xc
push 1
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfffffff7
add eax, 0x23
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100b07f7
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x258]
call fcn.1000171b
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x264]
lea ecx, [ebp - 0x2c]
call fcn.100017b4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x258]
call fcn.10001789
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100b07b9
push 0x100ca204
lea ecx, [ebp - 0x2c]
call fcn.10004f45
jmp 0x100b07c6
push 0x100ca22c
lea ecx, [ebp - 0x2c]
call fcn.10004f45
lea eax, [ebp - 0x2c]
push eax
call fcn.100af35b
pop ecx
movzx eax, al
test eax, eax
jne 0x100b07e6
lea eax, [ebp - 0x2c]
push eax
call fcn.100b0292
pop ecx
mov byte [ebp - 0x2d], al
jmp 0x100b07ea
mov byte [ebp - 0x2d], 1
push 0x100ca250
lea ecx, [ebp - 0x2c]
call fcn.10004f45
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001751
mov eax, dword [ebp - 0x25c]
or eax, 1
mov dword [ebp - 0x25c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10001789
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006ef11
leave
ret
Function at 0x100b0838
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4aa3
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 0x31], 0
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.100b06dd
pop ecx
pop ecx
and dword [ebp - 4], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x30]
call fcn.10004ff5
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x100b08d5
push 1
lea eax, [ebp - 0x50]
push eax
call fcn.100b06dd
pop ecx
pop ecx
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x50]
call fcn.10004ff5
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x50]
call fcn.10001789
cmp dword [ebp - 0x10], 0xffffffff
je 0x100b0906
push 0
lea eax, [ebp - 0x54]
push eax
push 0x10
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100b08fd
cmp dword [ebp - 0x54], 0x10
jne 0x100b08fd
mov byte [ebp - 0x31], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x55], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10001789
mov al, byte [ebp - 0x55]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006ef11
leave
ret 4
Function at 0x100b0934
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x31], 0
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.100b06dd
pop ecx
pop ecx
and dword [ebp - 4], 0
or dword [ebp - 0x10], 0xffffffff
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x30]
call fcn.10004ff5
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x100b0a28
push 1
lea eax, [ebp - 0x50]
push eax
call fcn.100b06dd
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
call fcn.100adfbf
pop ecx
movzx eax, al
test eax, eax
jne 0x100b09ff
lea eax, [ebp - 0x50]
push eax
call fcn.100adfbf
pop ecx
movzx eax, al
test eax, eax
je 0x100b09ff
push 0
lea ecx, [ebp - 0x30]
call fcn.10004ff5
push eax
lea ecx, [ebp - 0x50]
call fcn.10004ff5
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100b09ff
lea ecx, [ebp - 0x50]
call fcn.10004ff5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x50]
call fcn.10004ff5
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x50]
call fcn.10001789
cmp dword [ebp - 0x10], 0xffffffff
je 0x100b0a76
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x10
jb 0x100b0a6d
cmp dword [ebp - 0x54], 0xffffffff
je 0x100b0a6d
push 0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x54]
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b0a6d
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x54]
jne 0x100b0a6d
mov byte [ebp - 0x31], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x59], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10001789
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006ef11
leave
ret 4
Function at 0x100b10ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
mov eax, dword [0x100fd958]
and eax, 1
jne 0x100b1145
mov eax, dword [0x100fd958]
or eax, 1
mov dword [0x100fd958], eax
mov ecx, 0x100fd954
call fcn.100107ef
push 0x100ba7df
call fcn.1006f47b
pop ecx
mov ecx, 0x100fd954
call fcn.1002fe4d
movzx eax, al
test eax, eax
je 0x100b1198
and word [ebp - 0x218], 0
push 0x20a
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10071bb0
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x100fd954
call fcn.10003e87
push 0x100fd954
mov ecx, dword [ebp + 8]
call fcn.10003dd9
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006ef11
leave
ret

Function at 0x100b11c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
mov eax, dword [0x100fd960]
and eax, 1
jne 0x100b1209
mov eax, dword [0x100fd960]
or eax, 1
mov dword [0x100fd960], eax
mov ecx, 0x100fd95c
call fcn.100107ef
push 0x100ba7d0
call fcn.1006f47b
pop ecx
mov ecx, 0x100fd95c
call fcn.1002fe4d
movzx eax, al
test eax, eax
je 0x100b125c
and word [ebp - 0x218], 0
push 0x20a
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10071bb0
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x100fd95c
call fcn.10003e87
push 0x100fd95c
mov ecx, dword [ebp + 8]
call fcn.10003dd9
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006ef11
leave
ret
Function at 0x100b1682
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x74
call fcn.100018b0
movzx eax, al
test eax, eax
jne 0x100b16b1
push 4
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x74
call fcn.10004ff5
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
leave
ret 4
Function at 0x1023aba8
Capabilities:
Get number of processors

Disassembly:
xchg dword [esp], edi
shrd eax, edx, 0x15
cdq
shrd bx, si, cl
mov eax, dword [0x100e13e0]
pushfd
bts cx, 8
btc bx, 2
lea esp, [esp + 4]
xor eax, esp
ror cx, cl
bt cx, 0xd
stc
jmp loc.1021c44c

Function at 0x10246573
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0xf8], eax
mov dword [esp], ebp
mov word [esp], bx
lea esp, [esp + 0x78]
jmp fcn.1023c77b

Function at 0x1024914c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [esp], bl
mov word [esp + 0xa00], ax
pushal
call fcn.1021cf7b
Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.dll_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10026010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call fcn.10009641
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000187c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x100018a0
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x10001348
push 0
push 0
call sub.KERNEL32.dll_CreateThread
xor eax, eax
inc eax
pop edi
leave
ret 0xc
Function at 0x10001a08
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
push ebx
push esi
push edi
lea edi, [ebp - 0x164]
mov esi, dword [ebp + 8]
mov ecx, 0x59
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x160], 1
push 0x10
push 0
lea eax, [ebp - 0x174]
push eax
call sub.CRTDLL.DLL_memset
add esp, 0xc
mov word [ebp - 0x174], 2
movzx eax, word [ebp - 0xe4]
push eax
call sub.wsock32.dll_htons
mov edi, eax
mov word [ebp - 0x172], di
lea eax, [ebp - 0x164]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x188], eax
cmp eax, 0xffffffff
jne 0x10001a8e
lea eax, [ebp - 0x164]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x17c], eax
jmp 0x10001aa4
push 2
push 4
lea eax, [ebp - 0x188]
push eax
call sub.wsock32.dll_gethostbyaddr
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x10001ab4
xor eax, eax
jmp 0x10001c4a
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x170], eax
push 0x10
push 0
lea eax, [ebp - 0x1d9]
push eax
call sub.CRTDLL.DLL_memset
add esp, 0xc
cmp dword [ebp - 0xc], 1
jne 0x10001aeb
lea eax, [ebp - 0x20]
mov dword [ebp - 0x184], eax
jmp 0x10001afe
lea eax, [ebp - 0x1d9]
push eax
call fcn.10001d59
pop ecx
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x180]
push eax
push 0
push 0
push 0x10001c51
push 0
push 0
call sub.KERNEL32.dll_CreateThread
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov edi, dword [ebp - 8]
mov dword [edi*4 + 0x1002424c], ebx
push 0x10
lea eax, [ebp - 0x174]
push eax
push ebx
call sub.wsock32.dll_connect
mov dword [ebp - 0x180], eax
cmp eax, 0xffffffff
jne 0x10001b5d
push ebx
call sub.wsock32.dll_closesocket
push 0x7d0
call sub.KERNEL32.dll_Sleep
jmp 0x10001c1b
lea eax, [ebp - 0x164]
push eax
push str.connected_to__s.
lea eax, [ebp - 0x1c8]
push eax
call fcn.100095c5
lea eax, [ebp - 0x1c8]
push eax
call fcn.100018b6
push 0xf
push dword [ebp - 0x184]
mov edi, dword [ebp - 8]
shl edi, 4
lea edi, [edi + 0x1000fcec]
push edi
call sub.CRTDLL.DLL_strncpy
add esp, 0x1c
cmp dword [ebp - 0xc], 1
jne 0x10001bae
mov byte [ebp - 0x1c9], 1
jmp 0x10001bb5
mov byte [ebp - 0x1c9], 0
movzx eax, byte [ebp - 0x1c9]
push eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x184]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xe0]
push eax
push ebx
call fcn.10001dca
add esp, 0x20
mov dword [ebp - 0x178], eax
push ebx
call sub.wsock32.dll_closesocket
cmp dword [ebp - 0x178], 0
je 0x10001c1b
cmp dword [ebp - 0x178], 1
jne 0x10001c12
push 0x1b7740
call sub.KERNEL32.dll_Sleep
jmp 0x10001c1b
cmp dword [ebp - 0x178], 2
je 0x10001c20
jmp 0x10001a31
mov edi, dword [ebp - 8]
and dword [edi*4 + 0x1002435c], 0
shl edi, 7
mov byte [edi + 0x1000d04c], 0
mov edi, dword [ebp - 8]
shl edi, 4
mov byte [edi + 0x1000fcec], 0
mov eax, dword [ebp - 0x178]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10001d59
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, dword [ebp + 8]
lea esi, str.loggedoff
mov dword [ebp - 4], 0x100
call sub.KERNEL32.dll_GetTickCount
push eax
call sub.CRTDLL.DLL_srand
pop ecx
lea eax, [ebp - 4]
push eax
push esi
call sub.ADVAPI32.DLL_GetUserNameA
or eax, eax
jne 0x10001d8f
lea esi, str.loggedoff
push esi
push 0x10026d08
push ebx
call fcn.100095c5
add esp, 0xc
xor esi, esi
inc esi
call sub.CRTDLL.DLL_rand
mov ecx, 0xa
cdq
idiv ecx
push edx
push ebx
push str._s_i
push ebx
call fcn.100095c5
add esp, 0x10
inc esi
cmp esi, 2
jle 0x10001da1
mov eax, ebx
pop esi
pop ebx
leave
ret